/*!
 * @author electricessence / https://github.com/electricessence/
 * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
 */
"use strict";

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var ReadOnlyCollectionBase = function () {
    function ReadOnlyCollectionBase() {
        _classCallCheck(this, ReadOnlyCollectionBase);
    }

    _createClass(ReadOnlyCollectionBase, [{
        key: "toArray",
        value: function toArray() {
            return this.copyTo([]);
        }
    }, {
        key: "count",
        get: function get() {
            return this._getCount();
        }
    }, {
        key: "isReadOnly",
        get: function get() {
            return true;
        }
    }]);

    return ReadOnlyCollectionBase;
}();

Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ReadOnlyCollectionBase;
//# sourceMappingURL=ReadOnlyCollectionBase.js.map
