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 | |
---|---|---|
Count | Deliver the count of elements in the Sequence. | |
IsReadOnly | Always returns false. | |
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 | |
---|---|---|
Add | Add an element to the Sequence. | |
AddRange | Add a range of elements to the Sequence. | |
Append | Append the other Sequence at the end of this Sequence. | |
Clear | Clears the content of this Sequence. | |
Contains | Determine whether an element is contained in the Sequence. | |
CopyTo | Copies the elements of the Sequence into the array. | |
Equals | (Inherited from Object) | |
GetEnumerator | Get the enumeration of elements in the Sequence. | |
GetHashCode | (Inherited from Object) | |
GetType | (Inherited from Object) | |
IndexOf | Overloaded. | |
Insert | Insert element at the given index. If the index is out of range, an exception will be thrown. | |
InsertRange | Insert range of elements at a given index. If the index is out of range, an exception will be thrown. | |
LastIndexOf | Overloaded. | |
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. | |
RemoveAt | Remove an element at a given index. If the index is out of range an exception will be thrown. | |
ToArray | Returns the content of the Sequence as an array. | |
ToSequence | Delivers the content of the container as a Sequence value. | |
ToString | Overridden. Convert the Sequence to a readable representation. | |
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) |
|
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 | |
---|---|---|
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
SequenceContainer Generic Class
Microsoft.Modeling Namespace
T.Microsoft.Modeling.Sequence