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
TPropertyThe 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
namestringThe name of the property.
pointerPropertyPointer<TProperty>A pointer to the property.
factoryFunc<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()