CheckedPropertyDescriptor class

Namespace Runic.Application.Views.Generated in Runic.Application.Views 0.23.0

public sealed class CheckedPropertyDescriptor

Describes one property that accepts acknowledged field writes. Created by generated bridges.

Parameters

name

The .NET property name.

wireName

The property name on the wire.

valueKind

The wire value type.

getter

Reads the property value.

setter

Writes the decoded property value.

readValue

Decodes a CheckedFieldValueKind.Json value.

writeValue

Encodes a CheckedFieldValueKind.Json value.

Constructors

CheckedPropertyDescriptor

public CheckedPropertyDescriptor(string name, string wireName, CheckedFieldValueKind valueKind, Func<object, object?> getter, Action<object, object?> setter, Func<JsonElement, object?>? readValue = null, Action<Utf8JsonWriter, object?>? writeValue = null)

Describes one property that accepts acknowledged field writes. Created by generated bridges.

Parameters

name

The .NET property name.

wireName

The property name on the wire.

valueKind

The wire value type.

getter

Reads the property value.

setter

Writes the decoded property value.

readValue

Decodes a CheckedFieldValueKind.Json value.

writeValue

Encodes a CheckedFieldValueKind.Json value.

Properties

FieldPaths

public IReadOnlyList<BridgeFieldPath>? FieldPaths { get; init; }

The paths below the member that accept checked writes with field-paths/1, such as ["street"] of an address, with the generated copy of the member's value with that path changed; null when none do. A path write assigns the copy with the setter.

Name

public string Name { get; }

The .NET property name.

ValueKind

public CheckedFieldValueKind ValueKind { get; }

The wire value type.

WireName

public string WireName { get; }

The property name on the wire.