Sort(index, count, comparer)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Class: RT.Util.Collections.AutoList<T>Summary
Encapsulates a list which dynamically grows as items are written to non-existent indexes. Any gaps are populated
with default values. The behaviour of this list's indexed getter and setter is indistinguishable from that of an
infinitely long list pre-populated by invoking the initializer function (assuming it is side-effect free). See
Remarks. Generic type parametersT | This type parameter is not documented. |
Remarks
Only the indexer behaviour is changed; in every other way this behaves just like a standard, non-infinite
list. Moreover, the implementation is such that the new behaviour is only effective when used directly through
the class; accessing the indexer through the IList interface or the List base class will
currently behave the same as it would for a standard list.
Note that this is not a sparse list; accessing elements at a given index will grow the list to contain all of
the items below the index too. Constructors |
Constructor. | AutoList<T>(int capacity, Func<int, T> initializer = null) | AutoList<T>(IEnumerable<T> collection, Func<int, T> initializer = null) |
Instance methodsvoid | | Equivalent to the same method in List<T>. | void | | ReadOnlyCollection<T> | | int | | void | | bool | | AutoList<TOutput> | ConvertAll<TOutput>(Converter<T, TOutput> converter) | void | CopyTo(T[] array, int arrayIndex) | bool | | T | | AutoList<T> | | int | | int | FindIndex(int startIndex, Predicate<T> match) | int | FindIndex(int startIndex, int count, Predicate<T> match) | T | | int | | int | | int | | IEnumerator<T> | | AutoList<T> | | int | | int | | int | IndexOf(T item, int index, int count) | void | | void | | int | | int | | int | | bool | | int | | void | | void | | void | | void | | void | | void | Sort(Comparison<T> comparison) | void | Sort(IComparer<T> comparer) | void | Sort(int index, int count, IComparer<T> comparer) | T[] | | void | | bool | |
Instance propertiesint | | Equivalent to the same property in List<T>. | int | | bool | | T | |
Gets or sets the element at the specified index. The behaviour of both the getter and the setter is
indistinguishable from that of an infinitely long list pre-populated by invoking the initializer function
(assuming it is side-effect free). |
|