Share via


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
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Collect<T>
A function that turns an arbitrary parameter list into an IEnumerable<T>.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Concat<TItem>
Concatenate multiple sequences into a single one.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Exists<T>
Tests the given sequence, returning true if any element in sequence satisfies the given predicate.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif First<T>
Return the first item in the given sequence.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif ForAll<T>
Tests the given sequence, returning true only if all elements in sequence satisfies the given predicate.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif ForEach<TItem>
Execute the given action delegate for each item in the sequence.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Map<TIn, TOut>
Given a sequence of TIn, returns a sequence of TOut created by running the items in input through converter.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif OfType<TResult>
Given an IEnumerable return a new IEnumerable<T> that contains all the objects in source that are castable to TResult.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Reduce<TSource, TDest>
Run a functional Reduce operation. See other methods for examples.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif ToArray<T>
Create an array containing the elements of the given sequence.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif ToList<T>
Given an IEnumerable<T>, return a new List<T> containing the same contents.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif ToString Overloaded.
Ee650609.pubmethod(en-us,PandP.10).gifEe650609.static(en-us,PandP.10).gif Where<T>
Given a sequence of T, returns a sequence containing those elements that satisfy the given predicate pred.

See Also

Sequence Class

Microsoft.Practices.ObjectBuilder2 Namespace