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_Aggregate(const Func<T, T, T>&)Applies an accumulator function over a sequence.
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_Average()Computes the average of a sequence of numeric values.
LINQ_Average(const Func<T, ResultType>&)Computes the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
LINQ_Average(const Func<Source, ResultType>&)
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_Distinct()Returns distinct elements from a sequence by using the default equality comparer to compare values.
LINQ_ElementAt(int)Returns the element at a specified index in a sequence.
LINQ_ElementAtOrDefault(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<T, Key>, System::Func<T, Element>)Groups the elements of a sequence.
LINQ_GroupBy(System::Func<Source, Key>)
LINQ_GroupBy(System::Func<Source, Key>, System::Func<Source, Element>)
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_Max()Returns maximal element of the sequence.
LINQ_Max(const Func<T, ResultType>&)Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.
LINQ_Max(const Func<Source, ResultType>&)
LINQ_Min()Returns minimal element of the sequence.
LINQ_Min(const Func<T, ResultType>&)Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.
LINQ_Min(const Func<Source, ResultType>&)
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_Reverse()Inverts the order of the elements in a sequence.
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_SequenceEqual(SharedPtr<IEnumerable<T>>, const SharedPtr<IEqualityComparer<T>>&)Compares two sequences.
LINQ_SequenceEqual(SharedPtr<IEnumerable<T>>)Compares two sequences.
LINQ_Single()Returns the single elemet of the sequence and throws an exception if there are zero or more than one element.
LINQ_Single(const Func<T, bool>&)Returns the single elemet of the sequence that satisfies a condition and throws an exception if there are zero or more than one such elements.
LINQ_SingleOrDefault()Returns the single elemet of the sequence or default value if there are zero or more than one element.
LINQ_SingleOrDefault(const Func<T, bool>&)Returns the single elemet of the sequence that satisfies a condition or default value if there are zero or more than one such elements.
LINQ_Skip(int32_t)Skip a specified number of contiguous elements from the start of a sequence and returns rest.
LINQ_Sum()Computes the sum of all elelments in the sequence.
LINQ_Take(int32_t)Returns a specified number of contiguous elements from the start of a sequence.
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.
LINQ_Zip(SharedPtr<IEnumerable<TSecond>>, const Func<T, TSecond, TResult>&)Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
LINQ_Zip(SharedPtr<IEnumerable<TSecond>>, const Func<TFirst, TSecond, TResult>&)
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