public sealed class CheckedPropertyDescriptor Describes one property that accepts acknowledged field writes. Created by generated bridges.
Parameters
nameThe .NET property name.
wireNameThe property name on the wire.
valueKindThe wire value type.
getterReads the property value.
setterWrites the decoded property value.
readValueDecodes a
CheckedFieldValueKind.Jsonvalue.writeValueEncodes a
CheckedFieldValueKind.Jsonvalue.
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
nameThe .NET property name.
wireNameThe property name on the wire.
valueKindThe wire value type.
getterReads the property value.
setterWrites the decoded property value.
readValueDecodes a
CheckedFieldValueKind.Jsonvalue.writeValueEncodes a
CheckedFieldValueKind.Jsonvalue.
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.
WireName
public string WireName { get; } The property name on the wire.