Table of Contents

Class PropertyElementNodeCandidate<TProperty, TElement>

Namespace
NanoByte.StructureEditor
Assembly
NanoByte.StructureEditor.dll

Describes a potential new node in the structure that sets a polymorphic single-value property to a specific type of value.

public class PropertyElementNodeCandidate<TProperty, TElement> : NodeCandidate where TProperty : class where TElement : class, TProperty

Type Parameters

TProperty

The base type of the property.

TElement

The specific type of value to set the property to.

Inheritance
object
PropertyElementNodeCandidate<TProperty, TElement>
Inherited Members

Constructors

PropertyElementNodeCandidate(string, PropertyPointer<TProperty?>, Func<TElement>)

Describes a potential new node in the structure that sets a polymorphic single-value property to a specific type of value.

public PropertyElementNodeCandidate(string name, PropertyPointer<TProperty?> pointer, Func<TElement> factory)

Parameters

name string

The name of the value type.

pointer PropertyPointer<TProperty>

A pointer to the property.

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