Interface IStructureEditor<T>
- Namespace
- NanoByte.StructureEditor
- Assembly
- NanoByte.StructureEditor.dll
An editor for hierarchical structures.
public interface IStructureEditor<T> where T : class
Type Parameters
T
The type of object to edit.
Methods
DescribeRoot(string)
Set up handling for the root element with a generic editor.
IContainerDescription<T> DescribeRoot(string name)
Parameters
name
stringThe name of the root element.
Returns
DescribeRoot<TEditor>(string)
Set up handling for the root element with a custom editor.
IContainerDescription<T> DescribeRoot<TEditor>(string name) where TEditor : INodeEditor<T>, new()
Parameters
name
stringThe name of the root element.
Returns
Type Parameters
TEditor
An editor for modifying the content of the root.
Describe<TContainer>()
Adds a ContainerDescription<TContainer> used to describe the structure of the data being editing.
IContainerDescription<TContainer> Describe<TContainer>() where TContainer : class
Returns
- IContainerDescription<TContainer>
The ContainerDescription<TContainer> for use in a "Fluent API" style.
Type Parameters
TContainer
The type of the container to describe.