Ejemplo n.º 1
0
        public static SortedListCharKey <TValue> Create(int capacity)
        {
            var o = new SortedListCharKey <TValue>()
            {
                Array = new Tuple[capacity],
                _size = 0,
            };

            return(o);
        }
Ejemplo n.º 2
0
        /// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.SortedListCharKey`2" /> class that is empty, has the default initial capacity, and uses the default <see cref="T:System.Collections.Generic.IComparer`1" />.</summary>
        public static SortedListCharKey <TValue> Create()
        {
            var o = new SortedListCharKey <TValue>()
            {
                Array = EMPTY_ARRAY,
                _size = 0,
            };

            return(o);
        }