Class TopoGraph.Node<TKey, TItem>
Represents a node in a topological graph with a key, item, and dependencies.
Inheritance
object
Namespace: Umbraco.Cms.Core.Collections
Assembly: Umbraco.Core.dll
Syntax
public class TopoGraph.Node<TKey, TItem>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the key. |
| TItem | The type of the item. |
Constructors
View SourceNode(TKey, TItem, IEnumerable<TKey>)
Initializes a new instance of the TopoGraph.Node<TKey, TItem> class.
Declaration
public Node(TKey key, TItem item, IEnumerable<TKey> dependencies)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key that uniquely identifies the node. |
| TItem | item | The item stored in the node. |
| IEnumerable<TKey> | dependencies | The keys of nodes that this node depends on. |
Properties
View SourceDependencies
Gets the keys of nodes that this node depends on.
Declaration
public IEnumerable<TKey> Dependencies { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TKey> |
Item
Gets the item stored in this node.
Declaration
public TItem Item { get; }
Property Value
| Type | Description |
|---|---|
| TItem |
Key
Gets the key that uniquely identifies this node.
Declaration
public TKey Key { get; }
Property Value
| Type | Description |
|---|---|
| TKey |