SequenceContainer Members

Contains a Sequence. A SequenceContainer wraps a Sequence, providing a mutable version of Sequence.

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

Public Constructors

  Name Description
  SequenceContainer Overloaded.  

Top

Public Properties

  Name Description
public property Count Deliver the count of elements in the Sequence.
public property IsReadOnly Always returns false.
public property Item Return or set the element at the given index. If 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.
public method AddRange Add a range of elements to the Sequence.
public method Append Append the other Sequence at the end of this Sequence.
public method Clear Clears the content of this Sequence.
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  (Inherited from Object)
public method GetEnumerator Get the enumeration of elements in the Sequence.
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method IndexOf Overloaded.  
public method Insert Insert element at the given index. If the index is out of range, an exception will be thrown.
public method InsertRange Insert range of elements at a given index. If the index is out of range, an exception will be thrown.
public method LastIndexOf Overloaded.  
public method Remove Remove an element from the Sequence. If the element is not in the Sequence, FALSE will be returned, and the Sequence will not be changed. This method otherwise returns TRUE.
public method RemoveAt Remove an element at a given index. If the index is out of range an exception will be thrown.
public method ToArray Returns the content of the Sequence as an array.
public method ToSequence Delivers the content of the container as a Sequence value.
public method ToString Overridden. Convert the Sequence to a readable representation.
public method Transform Perform a transformation of the content of the container. For example, this is used together with LINQ query expressions, as in sc.Transform(s => from x in s where x > 0 select x)
public method Update Update the element at index. If index is out of bounds, an exception will be thrown.

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

SequenceContainer Generic Class
Microsoft.Modeling Namespace
T.Microsoft.Modeling.Sequence