Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Public static fields | Properties | Public Member Functions | List of all members
Loyc.Collections.InternalDArray< T > Struct Template Reference

Source file:
Inheritance diagram for Loyc.Collections.InternalDArray< T >:
Loyc.Collections.IAutoNegArray< T > Loyc.ICloneable< out T > Loyc.Collections.INegArray< T > Loyc.Collections.INegListSource< out T > Loyc.Collections.IArraySink< in T > Loyc.Collections.IIndexed< in K, out V > Loyc.Collections.ITryGet< in K, out V > Loyc.Collections.IIndexed< in K, out V >

Public fields

InternalDList< T > _list
 
int _startIndex
 
int Min => _startIndex
 
int Max => _startIndex + _list.Count - 1
 
int Count => _list.Count
 
defaultValue
 
InternalDList< T > InternalList => _list
 

Public static fields

static InternalDArray< T > Empty = new InternalDArray<T> { _list = InternalDList<T>.Empty }
 

Properties

this[int index] [get, set]
 
this[int index, T defaultValue] [get]
 
- Properties inherited from Loyc.Collections.INegArray< T >
new T this[int index] [get, set]
 Gets or sets an element of the array-like collection. More...
 
- Properties inherited from Loyc.Collections.INegListSource< out T >
int Min [get]
 Returns the minimum valid index in the collection. More...
 
int Max [get]
 Returns the maximum valid index in the collection. More...
 
- Properties inherited from Loyc.Collections.IIndexed< in K, out V >
this[K key] [get]
 Gets the value associated with the specified key. More...
 
- Properties inherited from Loyc.Collections.IArraySink< in T >
this[int index] [set]
 

Public Member Functions

IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
System.Collections.IEnumerator
System.Collections.IEnumerable. 
GetEnumerator ()
 
InternalDList< T >.Enumerator GetEnumerator ()
 
IListSource< T > Slice (int start, int count)
 Returns a sub-range of this list. More...
 
TryGet (int index, T defaultValue)
 
TryGet (int index, out bool fail)
 
bool TrySet (int index, T value)
 
InternalDArray< T > Clone ()
 
- Public Member Functions inherited from Loyc.Collections.ITryGet< in K, out V >
TryGet (K key, out bool fail)
 Gets the item for the specified key or index, and does not throw an exception on failure. More...
 

Member Function Documentation

IListSource<T> Loyc.Collections.InternalDArray< T >.Slice ( int  start,
int  count 
)

Returns a sub-range of this list.

Implements Loyc.Collections.INegListSource< out T >.