Class TupleTypedArrayWrapper<T>
Generic wrapper to treat an MDTuple as an array of elements of a specific type
public class TupleTypedArrayWrapper<T> : IReadOnlyList<T?>, IReadOnlyCollection<T?>, IEnumerable<T?>, IEnumerable where T : IrMetadata
Type Parameters
T
Type 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