Class L<T>
- Namespace
- SunamoCollectionsGeneric.Collections
- Assembly
- SunamoCollectionsGeneric.dll
Can be derived because of the new keyword. For completely derived from IList, use RefreshingList.
public class L<T> : List<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
TThe type of elements in the list.
- Inheritance
-
List<T>L<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
L()
Initializes a new instance of the L class
public L()
L(IList<T>)
Initializes a new instance with elements from an existing collection
public L(IList<T> collection)
Parameters
collectionIList<T>The collection to copy elements from
L(int)
Initializes a new instance with the specified capacity
public L(int capacity)
Parameters
capacityintThe initial capacity
Properties
DefaultValue
Gets or sets the default value to return when accessing an index out of bounds
public T DefaultValue { get; set; }
Property Value
- T
IsChanged
Gets or sets whether the list has been modified
public bool IsChanged { get; set; }
Property Value
this[int]
Gets or sets the element at the specified index. Before use, DefaultValue needs to be set up.
public T this[int index] { get; set; }
Parameters
indexintThe zero-based index of the element to get or set.
Property Value
- T
Length
Gets the number of elements in the list (alias for Count)
public int Length { get; }
Property Value
Methods
ToList()
Returns this instance as an L list
public L<T> ToList()
Returns
- L<T>
This instance