NullableLargeArrayT Class

Provides a high speed list that can have elements that can be null. It is similar to a ListT except high speed lookup for NextIndexOfNull-like functions is provided as well.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class NullableLargeArray<T> : IEnumerable<T>, 
	IEnumerable
Inheritance
Object    NullableLargeArrayT
Implements
IEnumerableT, IEnumerable

Type Parameters

T
Array type.

Constructors

NullableLargeArrayT Creates a NullableLargeArrayT.

Properties

Capacity Gets the number of items that can be stored in the array.
CountFree Gets the number of available spaces in the array. Equal to Capacity - CountUsed.
CountUsed Gets the number of non-null items that are in the array.
Item Gets the provided item from the array.

Methods

AddValue Adds a new value to the list at the nearest possible empty location. If there is not enough room, the list is automatically expanded.
Clear Clears all elements in the list
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the non-null elements of this collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue Gets the specified item from the list. Throws an exception if the item is null.
HasValue Checks if the element at the specified index has a value.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OverwriteValue Overwrites the value at the specified index.
SetCapacity Increases the capacity of the array to at least the given length. Will not reduce the size.
SetNull Sets the following item to null.
SetValue Sets the value at the specified index.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValue Tries to get the value at the specified index if it exists.

See Also