Class HierarchySerializer
- Assembly
- Cuemon.Extensions.Core.dll
Provides a way to serialize objects to nodes of IHierarchy<T>.
public class HierarchySerializer
- Inheritance
-
HierarchySerializer
- Extension Methods
Constructors
HierarchySerializer(Object, Action<HierarchyOptions>)
Initializes a new instance of the HierarchySerializer class.
public HierarchySerializer(object source, Action<HierarchyOptions> setup = null)
Parameters
source
ObjectThe object to convert to nodes of IHierarchy<T>.
setup
Action<HierarchyOptions>The HierarchyOptions 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 by constructor defined source object.
Methods
ToString()
Returns a String that represents this instance.
public override string ToString()