NanoByte Structure Editor
Public Member Functions | List of all members
NanoByte.StructureEditor.IListDescription< TContainer, TList > Interface Template Reference

Exposes methods for configuring a list in a ContainerDescription<TContainer> in a Fluent API style. More...

Inheritance diagram for NanoByte.StructureEditor.IListDescription< TContainer, TList >:
NanoByte.StructureEditor.ListDescription< TContainer, TList >

Public Member Functions

IListDescription< TContainer, TList > AddElement< TElement, TEditor > (string name, TElement element, TEditor editor)
 Adds a list element type to the description. More...
 

Detailed Description

Exposes methods for configuring a list in a ContainerDescription<TContainer> in a Fluent API style.

Template Parameters
TContainerThe type of the container containing the list.
TListThe type of elements in the list.
Type Constraints
TContainer :class 
TList :class 

Member Function Documentation

◆ AddElement< TElement, TEditor >()

IListDescription<TContainer, TList> NanoByte.StructureEditor.IListDescription< TContainer, TList >.AddElement< TElement, TEditor > ( string  name,
TElement  element,
TEditor  editor 
)

Adds a list element type to the description.

Parameters
nameThe name of the element type.
elementDummy element used for type inference of TElement .
editorDummy element used for type inference of TEditor .
Template Parameters
TElementThe type of a specific element type in the list.
TEditorAn editor for modifying this type of element.
Returns
The "this" pointer for use in a "Fluent API" style.

Implemented in NanoByte.StructureEditor.ListDescription< TContainer, TList >.

Type Constraints
TElement :class 
TElement :TList 
TElement :IEquatable<TElement> 
TElement :new() 
TEditor :INodeEditor<TElement> 
TEditor :new() 

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