Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GuidConverter.cs
Go to the documentation of this file.
2
3internal sealed class GuidConverter : JsonConverter<Guid>
4{
6 {
7 return reader.GetGuid();
8 }
9
11 {
12 writer.WriteStringValue(value);
13 }
14
16 {
17 return reader.GetGuidNoValidation();
18 }
19
24}
override Guid ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
override void Write(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options)
override Guid Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)