System::Collections::Generic::IEnumerable class

IEnumerable class

Interface of object providing enumerator on contained elements.

template<typename T>class IEnumerable : public virtual System::Object
ParameterDescription
TElement type.

Methods

MethodDescription
begin()Gets iterator pointing to the first element (if any) of the collection. This iterator can’t be used to change a referenced object because GetEnumerator() returns a copy-object of T.
begin() constGets iterator pointing to the first element (if any) of the const-qualified instance of the collection.
cbegin() constGets iterator pointing to the first const-qualified element (if any) of the collection.
cend() constGets iterator pointing right after the last const-qualified element (if any) of the collection.
end()Gets iterator pointing right after the last element (if any) of the collection. This iterator can’t be used to change a referenced object because GetEnumerator() returns a copy-object of T.
end() constGets iterator pointing right after the last element (if any) of the const-qualified instance of the collection.
virtual GetEnumerator()Gets enumerator.
LINQ_All(std::function<bool(T)>)Determines whether all elements of a sequence satisfy a condition.
LINQ_Any()Determines whether a sequence contains any elements.
LINQ_Any(std::function<bool(T)>)Determines whether any element of a sequence exists or satisfies a condition.
LINQ_Cast()Casts the elements to the specified type.
LINQ_Cast()
LINQ_Concat(SharedPtr<IEnumerable<T>>)Concatenates two sequences.
LINQ_Contains(T)Determines if a sequence contains a specified value.
LINQ_Count()Returns the number of elements in the sequence (calculated via direct counting).
LINQ_Count(const Func<T, bool>&)Returns the number of elements in the sequence that satisfy the specified condition.
LINQ_ElementAt(int)Returns the element at a specified index in a sequence.
LINQ_First()Returns the first element of a sequence.
LINQ_First(const Func<T, bool>&)Returns the first element of a sequence that satisfy the specified condition.
LINQ_FirstOrDefault()Returns the first element of a sequence, or a default value if the sequence is empty.
LINQ_FirstOrDefault(std::function<bool(T)>)Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
LINQ_GroupBy(System::Func<T, Key>)Groups the elements of a sequence.
LINQ_GroupBy(System::Func<Source, Key>)
LINQ_Last()Returns the last element of a sequence.
LINQ_LastOrDefault()Returns the last element of a sequence, or a default value if the sequence is empty.
LINQ_OfType()Filters the elements of the sequence based on the specified type.
LINQ_OfType()
LINQ_OrderBy(const Func<T, Key>&)Sorts the elements of a sequence in ascending order according to the key values selected by keySelector.
LINQ_OrderBy(const Func<Source, Key>&)
LINQ_OrderByDescending(const Func<T, Key>&)Sorts the elements of a sequence in descending order according to the key values selected by keySelector.
LINQ_OrderByDescending(const Func<Source, Key>&)
LINQ_Select(const Func<T, ResultType>&)Transforms elements of a sequence.
LINQ_Select(const Func<T, int32_t, ResultType>&)Transforms each element of a sequence into a new form by incorporating the element’s index.
LINQ_Select(const Func<Source, Result>&)
LINQ_Select(const Func<Source, int32_t, Result>&)
LINQ_SelectMany(const Func<T, SharedPtr<IEnumerable<ResultType>>>&)Projects each element of a sequence and combines the resulting sequences into one sequence.
LINQ_SelectMany(const Func<Source, SharedPtr<IEnumerable<Result>>>&)
LINQ_ToArray()Creates an array from a sequence.
LINQ_ToList()Creates a List from a sequence.
LINQ_Where(std::function<bool(T)>)Filters a sequence based on the specified predicate.
virtual virtualizeBeginConstIterator() constGets the implementation of begin const iterator for the current container.
virtual virtualizeBeginIterator()Gets the implementation of begin iterator for the current container.
virtual virtualizeEndConstIterator() constGets the implementation of end const iterator for the current container.
virtual virtualizeEndIterator()Gets the implementation of end iterator for the current container.

Typedefs

TypedefDescription
const_iteratorConst iterator type.
IEnumeratorTypeRTTI information.
iteratorIterator type.
ValueType
virtualized_iteratorInner iterator base type.
virtualized_iterator_elementInner iterator element type.

See Also