Skip to content

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

object ← PropertyDef

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

string?

Getter

public PropertyGetter Getter { get; }

Property Value

PropertyGetter

Meta

What an inspector shows it with (a range, a category...), or null.

public InspectorMeta? Meta { get; }

Property Value

InspectorMeta?

Name

public string Name { get; }

Property Value

string

ScriptName

The name in scripts: snake_case.

public string ScriptName { get; }

Property Value

string

Setter

public PropertySetter? Setter { get; }

Property Value

PropertySetter?

Type

public TypeRef Type { get; }

Property Value

TypeRef