PropertyNode<TNode> Class ​
Definition ​
Abstract base class for nodes in a tree with a collection of arbitrary properties that can be copied.
c#
public abstract class PropertyNode<TNode> : Node<TNode>
where TNode : PropertyNode<TNode>Type Parameters ​
| Name | Description |
|---|---|
TNode | Self generic node parameter. |
Constructors ​
| Name | Description |
|---|---|
PropertyNode() | Initialises a new instance of the Node<TNode> class. |
PropertyNode(IEnumerable<TNode>) | Initialises a new instance of the Node<TNode> class with the specified children. |
Properties ​
| Name | Description |
|---|---|
Properties | The Properties associated with this node. |
Methods ​
| Name | Description |
|---|---|
Copy() | Copies this node and its Properties using the DefaultNodeFactory<TNode>. |
Copy(INodeFactory<TNode>) | Copies this node and its Properties using the specified INodeFactory<TNode>. |
EnumerateProperties() | Returns an IEnumerable<T> that enumerates over the properties as KeyValuePair<TKey, TValue>s. Returns the name as the key and an untyped object for the value. This will be the object itself for single value properties and a List<T> of objects for multiple value properties. |