Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
temperature by Strauzz
Serialized outer thing: {"Thing":{"$type":1,"Id":"fc47695a-16e8-4e10-af49-ef99e583e5ee","Name":"outer object thing","Description":null}}
Outer thing Id: fc47695a-16e8-4e10-af49-ef99e583e5ee Name: outer object thing
Serialized container thing: {"Things":[{"$type":1,"Id":"2a956505-ffe4-4cad-890b-eac8a316308e","Name":"container thing","Description":null}]}
Container thing Id: 2a956505-ffe4-4cad-890b-eac8a316308e Name: container thing
Serialized thing by itself: {"Id":"b33e6db8-0de6-4454-8696-807e00dbdb50","Name":"thing by itself","Description":null}
Unhandled exception. System.NotSupportedException: Deserialization of interface types is not supported. Type 'IThing'. Path: $ | LineNumber: 0 | BytePositionInLine: 6.
 ---> System.NotSupportedException: Deserialization of interface types is not supported. Type 'IThing'.
   --- End of inner exception stack trace ---
   at System.Text.Json.ThrowHelper.ThrowNotSupportedException(ReadStack& state, Utf8JsonReader& reader, NotSupportedException ex)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo jsonTypeInfo)
   at Program.Main()
Command terminated by signal 6
Last Run: 12:23:45 am
Compile: 0.058s
Execute: 0.28s
Memory: 10.59Mb
CPU: 0.338s