TEnumerableBase<T> Class

Provides a default implementation for the Spring.Collections.IEnumerable<T> interface.

Namespace: Spring.Collections.Base
type
 TEnumerableBase<T> = class abstract(TEnumerableBase, IEnumerable<T>)
 end;

Type Parameters

T

The TEnumerableBase<T> type exposes the following members.

Show:
 NameDescription
Create

Overloaded. Initializes a new instance of the TEnumerableBase<T> class.

Create(IComparer)

Overloaded. Initializes a new instance of the TEnumerableBase<T> class.

Create(TComparison)

Overloaded. Initializes a new instance of the TEnumerableBase<T> class.

Destroy@

Represents the static destructor of the TEnumerableBase<T> class.

Top
Show:
 NameDescription
Comparer

Gets the assigned comparer. If not comparer was assigned it returns the default comparer.

Count

Returns the number of elements in a countable. (Inherited from TEnumerableBase.)

ElementType

Returns the type of the elements in the sequence. (Inherited from TEnumerableBase.)

EqualityComparer

Represents property EqualityComparer.

IsEmpty

Determines whether a countable contains no elements. (Inherited from TEnumerableBase.)

RefCount

Represents property RefCount. (Inherited from TInterfacedObjectEx.)

Top
Show:
 NameDescription
Aggregate(TFunc)

Applies an accumulator function over a sequence.

All(TPredicate<T>)

Determines whether all elements of a sequence satisfy a condition.

Any(TPredicate<T>)

Overloaded. Determines whether any element of a sequence satisfies a condition.

AsObject

Returns the reference to this instance. (Inherited from TEnumerableBase.)

BeforeDestruction

Represents method BeforeDestruction. (Inherited from TInterfacedObjectEx.)

Concat(IEnumerable<T>)

Represents method Concat(IEnumerable<T>).

Contains(T)

Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer.

Contains(T,IEqualityComparer)

Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>.

Contains(T,TEqualityComparison)

Overloaded. Represents method Contains(T,TEqualityComparison).

ElementAt(Integer)

Returns the element at a specified index in a sequence.

ElementAtOrDefault(Integer)

Overloaded. Returns the element at a specified index in a sequence or a default value if the index is out of range.

ElementAtOrDefault(Integer,T)

Overloaded. Returns the element at a specified index in a sequence or the specified default value if the index is out of range.

EqualsTo(IEnumerable<T>)

Overloaded. Represents method EqualsTo(IEnumerable<T>).

EqualsTo(IEnumerable<T>,IEqualityComparer)

Overloaded. Represents method EqualsTo(IEnumerable<T>,IEqualityComparer).

EqualsTo(T[])

Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.

First

Overloaded. Returns the first element of a sequence.

First(TPredicate<T>)

Overloaded. Returns the first element in a sequence that satisfies a specified condition.

FirstOrDefault

Overloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements.

FirstOrDefault(T)

Overloaded. Returns the first element of a sequence, or the specified default value if the sequence contains no elements.

FirstOrDefault(TPredicate<T>)

Overloaded. Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.

FirstOrDefault(TPredicate<T>,T)

Overloaded. Returns the first element of the sequence that satisfies a condition or the specified default value if no such element is found.

ForEach(TAction<T>)

Overloaded. Performs the specified action on each element of a sequence.

GetComparer

Returns the specified comparer for this instance.

GetCount

Represents method GetCount. (Inherited from TEnumerableBase.)

GetElementType

Represents method GetElementType. (Overrides TEnumerableBase.GetElementType.)

GetEnumerator

Returns an enumerator that iterates through the collection.

GetEnumeratorNonGeneric

Returns an enumerator that iterates through a collection. (Overrides TEnumerableBase.GetEnumeratorNonGeneric.)

GetEqualityComparer

Represents method GetEqualityComparer.

GetIsEmpty

Represents method GetIsEmpty. (Inherited from TEnumerableBase.)

Last

Overloaded. Returns the last element of a sequence.

Last(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a specified condition.

LastOrDefault

Overloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements.

LastOrDefault(T)

Overloaded. Returns the last element of a sequence, or the specified default value if the sequence contains no elements.

LastOrDefault(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.

LastOrDefault(TPredicate<T>,T)

Overloaded. Returns the last element of a sequence that satisfies a condition or the specified default value if no such element is found.

Max

Overloaded. Returns the maximum value in a sequence.

Max(IComparer)

Overloaded. Returns the maximum value in a sequence by using the specified IComparer<T> .

Max(TComparison)

Overloaded. Represents method Max(TComparison).

Max(TFunc)

Overloaded. Represents method Max(TFunc).

Min

Overloaded. Returns the minimum value in a sequence.

Min(IComparer)

Overloaded. Returns the minimum value in a sequence by using the specified IComparer<T> .

Min(TComparison)

Overloaded. Represents method Min(TComparison).

Min(TFunc)

Overloaded. Represents method Min(TFunc).

Ordered

Overloaded. Sorts the elements of a sequence in ascending order using the default comparer for their type.

Ordered(IComparer)

Overloaded. Sorts the elements of a sequence in ascending order using the specified IComparer<T>.

Ordered(TComparison)

Overloaded. Represents method Ordered(TComparison).

QueryInterface(TGUID,Void)

Represents method QueryInterface(TGUID,Void). (Inherited from TEnumerableBase.)

Reversed

Inverts the order of the elements in a sequence.

Shuffled

Returns the sequence in a shuffled order.

Single

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.

Single(TPredicate<T>)

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.

SingleOrDefault

Overloaded. Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

SingleOrDefault(T)

Overloaded. Returns the only element of a sequence, or the specified default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

SingleOrDefault(TPredicate<T>)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

SingleOrDefault(TPredicate<T>,T)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or the specified default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

Skip(Integer)

Bypasses a specified number of elements in a sequence and then returns the remaining elements.

SkipWhile(TFunc)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

SkipWhile(TPredicate<T>)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

Sum

Overloaded. Computes the sum of the sequence.

Take(Integer)

Returns a specified number of contiguous elements from the start of a sequence.

TakeWhile(TFunc)

Overloaded. Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.

TakeWhile(TPredicate<T>)

Overloaded. Returns elements from a sequence as long as a specified condition is true.

ToArray

Creates a new array which is filled with the elements in the collection.

TryGetElementAt(T,Integer)

Represents method TryGetElementAt(T,Integer).

TryGetFirst(T)

Overloaded. Try getting the first element in a sequence.

TryGetFirst(T,TPredicate<T>)

Overloaded. Try getting the first element in a sequence that satisfies a specified condition.

TryGetLast(T)

Overloaded. Try getting the last element in a sequence.

TryGetLast(T,TPredicate<T>)

Overloaded. Try getting the last element in a sequence that satisfies a specified condition.

TryGetSingle(T)

Overloaded. Try getting the only element in a sequence.

TryGetSingle(T,TPredicate<T>)

Overloaded. Try getting the only element in a sequence that satisfies a specified condition.

Where(TPredicate<T>)

Filters a sequence of values based on a predicate.

_AddRef

Represents method _AddRef. (Inherited from TEnumerableBase.)

_Release

Represents method _Release. (Inherited from TEnumerableBase.)

Top
Show:
 NameDescription
fComparer

Represents field fComparer.

fEqualityComparer

Represents field fEqualityComparer.

Top