Method ReadAsPropertyName
- Namespace
- Millrace
- Assembly
- Millrace.dll
ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
public override JobId ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe Utf8JsonReader to read from.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsThe options to use when reading the value.
Returns
- JobId
The value that was converted.
Remarks
A separate path because property names are read as raw strings — the reader offers no
GetGuid there, so the parse is explicit.