Table of Contents

Class PropertyNodeCandidate<TProperty>

Namespace
NanoByte.StructureEditor
Assembly
NanoByte.StructureEditor.dll

Describes a potential new node in the structure that points to a property.

public class PropertyNodeCandidate<TProperty> : NodeCandidate where TProperty : class

Type Parameters

TProperty

The type of the property.

Inheritance
PropertyNodeCandidate<TProperty>
Inherited Members

Constructors

PropertyNodeCandidate(string, PropertyPointer<TProperty?>, Func<TProperty>)

Describes a potential new node in the structure that points to a property.

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

Parameters

name string

The name of the property.

pointer PropertyPointer<TProperty>

A pointer to the property.

factory Func<TProperty>

Callback to create a new instance of TProperty.

Methods

GetCreateCommand()

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

public override IValueCommand GetCreateCommand()

Returns

IValueCommand