Class HierarchySerializer
- Namespace
- Cuemon.Runtime.Serialization
- Assembly
- Cuemon.Core.dll
Provides a way to serialize objects to nodes of IHierarchy<T>.
public class HierarchySerializer
- Inheritance
-
ObjectHierarchySerializer
Constructors
HierarchySerializer(Object, Action<ObjectHierarchyOptions>)
Initializes a new instance of the HierarchySerializer class.
public HierarchySerializer(object source, Action<ObjectHierarchyOptions> setup = null)
Parameters
source
ObjectThe object to convert to nodes of IHierarchy<T>.
setup
Action<ObjectHierarchyOptions>The ObjectHierarchyOptions which need to be configured.
Properties
Nodes
Gets the result of the IHierarchy<T>.
public IHierarchy<object> Nodes { get; }
Property Value
- IHierarchy<Object>
The converted nodes of the the by constructor defined source object.
Methods
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
- String
A System.String that represents this instance.