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

◆ ThrowIfTypeNeverValidGenericArgument()

static void System.RuntimeType.ThrowIfTypeNeverValidGenericArgument ( RuntimeType type)
inlinestaticprivate

Definition at line 4038 of file RuntimeType.cs.

4039 {
4040 if (type.IsPointer || type.IsByRef || type == typeof(void))
4041 {
4042 throw new ArgumentException(SR.Format(SR.Argument_NeverValidGenericArgument, type));
4043 }
4044 }

References System.SR.Argument_NeverValidGenericArgument, System.SR.Format(), and System.type.

Referenced by System.RuntimeType.MakeGenericType().