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

◆ ThrowNotSupportedException_DeserializeNoConstructor()

static void System.Text.Json.ThrowHelper.ThrowNotSupportedException_DeserializeNoConstructor ( Type type,
ref Utf8JsonReader reader,
ref ReadStack state )
inlinestatic

Definition at line 1051 of file ThrowHelper.cs.

1052 {
1053 string message = ((!type.IsInterface) ? System.SR.Format(System.SR.DeserializeNoConstructor, "JsonConstructorAttribute", type) : System.SR.Format(System.SR.DeserializePolymorphicInterface, type));
1054 ThrowNotSupportedException(ref state, in reader, new NotSupportedException(message));
1055 }
static string DeserializePolymorphicInterface
Definition SR.cs:184
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string DeserializeNoConstructor
Definition SR.cs:182
Definition SR.cs:7
static void ThrowNotSupportedException(ref ReadStack state, in Utf8JsonReader reader, NotSupportedException ex)

References System.SR.DeserializeNoConstructor, System.SR.DeserializePolymorphicInterface, System.Text.Json.Dictionary, System.SR.Format(), System.state, System.Text.Json.ThrowHelper.ThrowNotSupportedException(), and System.type.

Referenced by System.Text.Json.Serialization.Converters.IDictionaryConverter< TDictionary >.CreateCollection(), System.Text.Json.Serialization.Converters.IDictionaryOfTKeyTValueConverter< TDictionary, TKey, TValue >.CreateCollection(), System.Text.Json.Serialization.Converters.ICollectionOfTConverter< TCollection, TElement >.CreateCollection(), System.Text.Json.Serialization.Converters.IListConverter< TCollection >.CreateCollection(), System.Text.Json.Serialization.Converters.IListOfTConverter< TCollection, TElement >.CreateCollection(), System.Text.Json.Serialization.Converters.ISetOfTConverter< TCollection, TElement >.CreateCollection(), System.Text.Json.Serialization.Converters.ObjectDefaultConverter< T >.CreateInstanceForReferenceResolver(), and System.Text.Json.Serialization.Converters.ObjectDefaultConverter< T >.OnTryRead().