Sequence Members

Specifies a Sequence, an ordered collection of elements similar to a list but immutable. See SequenceContainer for a mutable version of sequences.

The following tables list the members exposed by the Sequence type.

Public Constructors

  Name Description
  Sequence Overloaded.  

Top

Public Fields

  Name Description
public field Rep Supports the infrastructure. Do not use.

Top

Public Properties

  Name Description
public property Count Returns the count of elements in the sequence.
public property IsReadOnly Always returns true.
public property Item Return the element at the given index. If the index is out of bounds, an exception is thrown.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Add an element to the Sequence, returning a new Sequence.
public method AddRange Add a range of elements to a Sequence.
public method Append Return the concatenation of this and the other sequence.
public method Clear Not supported since sequence values are read-only.
public method Contains Determine whether an element is contained in the sequence.
public method CopyTo Copies the elements of the sequence into the array.
public method Equals  Overridden. Determines whether the specified compound value is equal to the current compound value. (Inherited from Object)
public method GetEnumerator Get the enumeration of elements in the sequence.
public method GetHashCode  Overridden. Serves as a consistent hash function for a compound value type. (Inherited from Object)
public method GetType  (Inherited from Object)
public method GroupBy Overloaded.  
public method GroupJoin Perform a grouped join of two sequences based on matching keys extracted from the elements.
public method IndexOf Overloaded.  
public method Insert Insert element at given index. If the index is out of bounds, an exception will be thrown.
public method InsertRange Insert the enumeration of elements at the given index. If index is out of bounds, an exception will be thrown.
public method Join Perform an inner join of two sequences based on matching keys extracted from the elements.
public method LastIndexOf Overloaded.  
public methodstatic Addition Returns the concatenation of this and the other sequence.
public method OrderBy Orders a sequence according to the given key in ascending order.
public method OrderByDescending Orders a sequence according to a given key in descending order.
public method Remove Remove an element from the sequence, delivering a new sequence. If the element is not in the sequence, the current sequence will be returned.
public method RemoveAt Remove an element at a given index, delivering a new sequence. If the index is out of range an exception will be thrown.
public method Revert Deliver the sequence value with a reversed order of elements.
public method Select Perform a projection over a sequence.
public method SelectMany Perform a one-to-many element projection over a sequence.
public method SubSeq Overloaded.  
public method ToArray Returns the content of the sequence value as an array.
public method ToString Overridden. Convert sequence value to a readable representation.
public method Update Replace the value at index by element. If index is out of bounds, an exception will be thrown.
public method Where Filter a sequence based on the given predicate.

Top

Protected Methods

(see also Extension Methods)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

Extension Methods

  Name Description
public extension method Exists  Indicates whether a predicate is true for at least one element of a collection. (Defined by LogicalOperations.)
public extension method Forall  Indicates whether a predicate is true for all elements of a collection. (Defined by LogicalOperations.)

Top

See Also

Reference

Sequence Generic Class
Microsoft.Modeling Namespace
SequenceContainer