Sequence Members
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
The Sequence type exposes the following members.
Methods
Name | Description | |
---|---|---|
Collect<T> |
A function that turns an arbitrary parameter list into an IEnumerable<T>.
|
|
Concat<TItem> |
Concatenate multiple sequences into a single one.
|
|
Exists<T> |
Tests the given sequence, returning true if any element in sequence satisfies the given predicate.
|
|
First<T> |
Return the first item in the given sequence.
|
|
ForAll<T> |
Tests the given sequence, returning true only if all elements in sequence satisfies the given predicate.
|
|
ForEach<TItem> |
Execute the given action delegate for each item in the sequence.
|
|
Map<TIn, TOut> |
Given a sequence of TIn, returns a sequence of TOut created by running the items in input through converter.
|
|
OfType<TResult> |
Given an IEnumerable return a new IEnumerable<T> that contains all the objects in source that are castable to TResult.
|
|
Reduce<TSource, TDest> |
Run a functional Reduce operation. See other methods for examples.
|
|
ToArray<T> |
Create an array containing the elements of the given sequence.
|
|
ToList<T> |
Given an IEnumerable<T>, return a new List<T> containing the same contents.
|
|
ToString | Overloaded. | |
Where<T> |
Given a sequence of T, returns a sequence containing those elements that satisfy the given predicate pred.
|