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
TPropertyThe base type of the property.
TElementThe specific type of value to set the property to.
- Inheritance
-
objectPropertyElementNodeCandidate<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
namestringThe name of the value type.
pointerPropertyPointer<TProperty>A pointer to the property.
factoryFunc<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()