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

◆ GetImmutableDictionaryCreateRangeMethod()

static MethodInfo System.Text.Json.Serialization.IEnumerableConverterFactoryHelpers.GetImmutableDictionaryCreateRangeMethod ( this Type type,
Type keyType,
Type valueType )
inlinestatic

Definition at line 30 of file IEnumerableConverterFactoryHelpers.cs.

31 {
34 {
37 foreach (MethodInfo methodInfo in array)
38 {
39 if (methodInfo.Name == "CreateRange" && methodInfo.GetParameters().Length == 1 && methodInfo.IsGenericMethod && methodInfo.GetGenericArguments().Length == 2)
40 {
42 }
43 }
44 }
45 ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(type);
46 return null;
47 }
virtual MethodInfo MakeGenericMethod(params Type[] typeArguments)
Definition MethodInfo.cs:41

References System.array, System.Text.Json.Dictionary, System.Text.Json.Serialization.IEnumerableConverterFactoryHelpers.GetImmutableDictionaryConstructingType(), System.Reflection.MethodInfo.MakeGenericMethod(), System.Text.Json.ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(), and System.type.