Class PropertyDef¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
A property: the setter is null for a read-only one.
public sealed class PropertyDef
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
PropertyDef(string, string, TypeRef, PropertyGetter, PropertySetter?, string?, InspectorMeta?)¶
A property: the setter is null for a read-only one.
public PropertyDef(string name, string scriptName, TypeRef type, PropertyGetter getter, PropertySetter? setter, string? doc = null, InspectorMeta? meta = null)
Parameters¶
name string
scriptName string
type TypeRef
getter PropertyGetter
setter PropertySetter?
doc string?
meta InspectorMeta?
Properties¶
Doc¶
public string? Doc { get; }
Property Value¶
Getter¶
public PropertyGetter Getter { get; }
Property Value¶
Meta¶
What an inspector shows it with (a range, a category...), or null.
public InspectorMeta? Meta { get; }
Property Value¶
Name¶
public string Name { get; }
Property Value¶
ScriptName¶
The name in scripts: snake_case.
public string ScriptName { get; }
Property Value¶
Setter¶
public PropertySetter? Setter { get; }
Property Value¶
Type¶
public TypeRef Type { get; }