Class NodeList<T, TNode>
- Namespace
- MassTransit.Internals.GraphValidation
- Assembly
- MassTransit.Abstractions.dll
Maintains a list of nodes for a given set of instances of T
public class NodeList<T, TNode> : IEnumerable<TNode>, IEnumerable where T : notnull where TNode : Node<T>
Type Parameters
T
The type encapsulated in the node
TNode
The type of node contained in the list
- Inheritance
-
NodeList<T, TNode>
- Implements
-
IEnumerable<TNode>
- Inherited Members
- Extension Methods
Constructors
NodeList(Func<int, T, TNode>, int)
public NodeList(Func<int, T, TNode> nodeFactory, int capacity)
Parameters
Properties
this[T]
Retrieves the node for the given key
public TNode this[T key] { get; }
Parameters
key
TThe key
Property Value
- TNode
The unique node that relates to the specified key
Methods
GetEnumerator()
public IEnumerator<TNode> GetEnumerator()
Returns
- IEnumerator<TNode>
Index(T)
Retrieve the index for a given key
public int Index(T key)
Parameters
key
TThe key
Returns
- int
The index