Table of Contents

Class ListElementNodeCandidate<TList, TElement>

Namespace
NanoByte.StructureEditor
Assembly
NanoByte.StructureEditor.dll

Describes a potential new node in the structure that points to an element in the list.

public class ListElementNodeCandidate<TList, TElement> : NodeCandidate where TList : notnull where TElement : TList

Type Parameters

TList

The type of elements in the list.

TElement

The type of a specific element type to add to the list.

Inheritance
ListElementNodeCandidate<TList, TElement>
Inherited Members

Constructors

ListElementNodeCandidate(string, IList<TList>, Func<TElement>)

Describes a potential new node in the structure that points to an element in the list.

public ListElementNodeCandidate(string name, IList<TList> list, Func<TElement> factory)

Parameters

name string

The name of the element type.

list IList<TList>

The list to add the element to.

factory Func<TElement>

Callback to create a new instance of TElement.

Methods

GetCreateCommand()

Gets a command for creating the new node in the structure.

public override IValueCommand GetCreateCommand()

Returns

IValueCommand