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

◆ GetImmutableEnumerableCreateRangeMethod()

static MethodInfo System.Text.Json.Serialization.IEnumerableConverterFactoryHelpers.GetImmutableEnumerableCreateRangeMethod ( this Type type,
Type elementType )
inlinestatic

Definition at line 10 of file IEnumerableConverterFactoryHelpers.cs.

11 {
14 {
17 foreach (MethodInfo methodInfo in array)
18 {
19 if (methodInfo.Name == "CreateRange" && methodInfo.GetParameters().Length == 1 && methodInfo.IsGenericMethod && methodInfo.GetGenericArguments().Length == 1)
20 {
22 }
23 }
24 }
25 ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(type);
26 return null;
27 }
virtual MethodInfo MakeGenericMethod(params Type[] typeArguments)
Definition MethodInfo.cs:41

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