Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ JsonSerializerContext()

System.Text.Json.Serialization.JsonSerializerContext.JsonSerializerContext ( JsonSerializerOptions? options)
inlineprotected

Definition at line 47 of file JsonSerializerContext.cs.

48 {
49 if (options != null)
50 {
51 if (options._context != null)
52 {
53 ThrowHelper.ThrowInvalidOperationException_JsonSerializerOptionsAlreadyBoundToContext();
54 }
56 options._context = this;
57 }
58 }

References System.Text.Json.Serialization.JsonSerializerContext._options, System.Text.Json.Dictionary, System.options, and System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerOptionsAlreadyBoundToContext().