Class TreeDictionaryNode<TKey, TValue>
- Namespace
- LfrlAnvil.Collections
- Assembly
- LfrlAnvil.Collections.dll
Represents a ITreeDictionary<TKey, TValue> node.
public sealed class TreeDictionaryNode<TKey, TValue> : ITreeDictionaryNode<TKey, TValue>, ITreeNode<TValue> where TKey : notnullType Parameters
- TKey
- Key type. 
- TValue
- Value type. 
- Inheritance
- 
      
      TreeDictionaryNode<TKey, TValue>
- Implements
- 
      ITreeDictionaryNode<TKey, TValue>ITreeNode<TValue>
- Inherited Members
- Extension Methods
Constructors
TreeDictionaryNode(TKey, TValue)
Creates a new TreeDictionaryNode<TKey, TValue> instance.
public TreeDictionaryNode(TKey key, TValue value)Parameters
- keyTKey
- Node's key. 
- valueTValue
- Node's value. 
Properties
Children
Collection of children nodes.
public IReadOnlyList<TreeDictionaryNode<TKey, TValue>> Children { get; }Property Value
- IReadOnlyList<TreeDictionaryNode<TKey, TValue>>
Key
Underlying key.
public TKey Key { get; }Property Value
- TKey
Parent
Optional parent node.
public TreeDictionaryNode<TKey, TValue>? Parent { get; }Property Value
- TreeDictionaryNode<TKey, TValue>
Tree
Associated TreeDictionary<TKey, TValue> instance with this node.
public TreeDictionary<TKey, TValue>? Tree { get; }Property Value
- TreeDictionary<TKey, TValue>
Value
Underlying value.
public TValue Value { get; set; }Property Value
- TValue
Methods
ToString()
Returns a string representation of this TreeDictionaryNode<TKey, TValue> instance.
[Pure]
public override string ToString()Returns
- string
- String representation.