NanoByte Structure Editor
Public Member Functions | List of all members
NanoByte.StructureEditor.ContainerDescription< TContainer > Class Template Reference

Describes an object that contains nodes (properties and/or lists). Provides information about how to edit this content. More...

Inheritance diagram for NanoByte.StructureEditor.ContainerDescription< TContainer >:
NanoByte.StructureEditor.IContainerDescription< TContainer >

Public Member Functions

IContainerDescription< TContainer > AddProperty< TProperty, TEditor > (string name, Func< TContainer, PropertyPointer< TProperty >> getPointer, TEditor editor)
 Adds a property to the description.
 
IListDescription< TContainer, TList > AddList< TList > (Func< TContainer, IList< TList >> getList)
 Adds a list to the description. More...
 
IContainerDescription< TContainer > AddPlainList< TElement, TEditor > (string name, Func< TContainer, IList< TElement >> getList, TEditor editor)
 Adds a list with only one type of element to the description.
 
IEnumerable< NodeGetNodesIn (TContainer container)
 Returns information about nodes found in a specific instance of TContainer .
 
IEnumerable< NodeCandidateGetCandidatesFor (TContainer container)
 Returns information about possible new child nodes for a specific instance of TContainer .
 

Detailed Description

Describes an object that contains nodes (properties and/or lists). Provides information about how to edit this content.

Template Parameters
TContainerThe type of the container to be described.
Type Constraints
TContainer :class 

Member Function Documentation

◆ AddList< TList >()

IListDescription<TContainer, TList> NanoByte.StructureEditor.ContainerDescription< TContainer >.AddList< TList > ( Func< TContainer, IList< TList >>  getList)
inline

Adds a list to the description.

Template Parameters
TListThe type of elements in the list.
Parameters
getListA function to retrieve the list from the container.
Returns
A list description, enabling you to specify explicit sub-types of TList allowed in the list.

Implements NanoByte.StructureEditor.IContainerDescription< TContainer >.

Type Constraints
TList :class 

The documentation for this class was generated from the following file: