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 | |
---|---|---|
Rep | Supports the infrastructure. Do not use. |
Top
Public Properties
Name | Description | |
---|---|---|
Count | Returns the count of elements in the sequence. | |
IsReadOnly | Always returns true. | |
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 | |
---|---|---|
Add | Add an element to the Sequence, returning a new Sequence. | |
AddRange | Add a range of elements to a Sequence. | |
Append | Return the concatenation of this and the other sequence. | |
Clear | Not supported since sequence values are read-only. | |
Contains | Determine whether an element is contained in the sequence. | |
CopyTo | Copies the elements of the sequence into the array. | |
Equals | Overridden. Determines whether the specified compound value is equal to the current compound value. (Inherited from Object) | |
GetEnumerator | Get the enumeration of elements in the sequence. | |
GetHashCode | Overridden. Serves as a consistent hash function for a compound value type. (Inherited from Object) | |
GetType | (Inherited from Object) | |
GroupBy | Overloaded. | |
GroupJoin | Perform a grouped join of two sequences based on matching keys extracted from the elements. | |
IndexOf | Overloaded. | |
Insert | Insert element at given index. If the index is out of bounds, an exception will be thrown. | |
InsertRange | Insert the enumeration of elements at the given index. If index is out of bounds, an exception will be thrown. | |
Join | Perform an inner join of two sequences based on matching keys extracted from the elements. | |
LastIndexOf | Overloaded. | |
Addition | Returns the concatenation of this and the other sequence. | |
OrderBy | Orders a sequence according to the given key in ascending order. | |
OrderByDescending | Orders a sequence according to a given key in descending order. | |
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. | |
RemoveAt | Remove an element at a given index, delivering a new sequence. If the index is out of range an exception will be thrown. | |
Revert | Deliver the sequence value with a reversed order of elements. | |
Select | Perform a projection over a sequence. | |
SelectMany | Perform a one-to-many element projection over a sequence. | |
SubSeq | Overloaded. | |
ToArray | Returns the content of the sequence value as an array. | |
ToString | Overridden. Convert sequence value to a readable representation. | |
Update | Replace the value at index by element. If index is out of bounds, an exception will be thrown. | |
Where | Filter a sequence based on the given predicate. |
Top
Protected Methods
(see also Extension Methods)
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
Extension Methods
Name | Description | |
---|---|---|
Exists | Indicates whether a predicate is true for at least one element of a collection. (Defined by LogicalOperations.) | |
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