CheckedPropertyDescriptor<T> class

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public sealed class CheckedPropertyDescriptor<T>

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<T, object?> getter, Action<T, 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

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.