Class TupleTypedArrayWrapper<T>
Generic wrapper to treat an MDTuple as an array of elements of a specific type
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "Collection doesn't make sense for this type")]
public class TupleTypedArrayWrapper<T> : IReadOnlyList<T?>, IReadOnlyCollection<T?>, IEnumerable<T?>, IEnumerable where T : IrMetadata
Type Parameters
TType of elements
- Inheritance
-
TupleTypedArrayWrapper<T>
- Implements
-
IEnumerable<T>
- Derived
- Inherited Members
Remarks
This implements a façade pattern that presents an IReadOnlyCollection<T> for the operands of an MDTuple. This allows treating the tuple like an array of nodes of a particular type.
Properties
- this[int]
Gets an item from the tuple
- Tuple
Gets the underlying tuple for this wrapper
Methods
- GetEnumerator()
Gets an enumerator for the items in the MDTuple