Class HumlPropertyInfo

Namespace
Huml.Net.Serialization
Assembly
Huml.Net.dll

Describes a single property for use during HUML (de)serialisation. Mirroring JsonPropertyInfo, delegates are boxed non-generic to avoid covariance and contravariance issues across the type hierarchy.

public class HumlPropertyInfo
Inheritance
HumlPropertyInfo
Inherited Members

Properties

Get

Reads the property value from a boxed owner instance.

public Func<object, object?>? Get { get; set; }

Property Value

Func<object, object>

IsRequired

Whether this property is required during deserialisation.

public bool IsRequired { get; set; }

Property Value

bool

Name

The HUML key name for this property.

public string Name { get; set; }

Property Value

string

Order

Serialisation order; lower values are emitted first.

public int Order { get; set; }

Property Value

int

PropertyType

The CLR type of this property's value.

public Type? PropertyType { get; set; }

Property Value

Type

Set

Writes the property value to a boxed owner instance.

public Action<object, object?>? Set { get; set; }

Property Value

Action<object, object>