Method ReadAsPropertyName
ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
Declaration
public override IFilePath ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | The Utf8JsonReader to read from. |
| Type | typeToConvert | The type to convert. |
| JsonSerializerOptions | options | The options to use when reading the value. |
Returns
| Type | Description |
|---|---|
| IFilePath | The value that was converted. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| JsonException | The property name is not a valid path. |