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

◆ GetGenericParameterConstraints()

override Type[] System.RuntimeType.GetGenericParameterConstraints ( )
inlinevirtual

Reimplemented from System.Type.

Definition at line 2952 of file RuntimeType.cs.

2953 {
2954 if (!IsGenericParameter)
2955 {
2956 throw new InvalidOperationException(SR.Arg_NotGenericParameter);
2957 }
2958 Type[] constraints = new RuntimeTypeHandle(this).GetConstraints();
2959 return constraints ?? Type.EmptyTypes;
2960 }
override bool IsGenericParameter

References System.SR.Arg_NotGenericParameter, System.Type.EmptyTypes, System.RuntimeTypeHandle.GetConstraints(), and System.RuntimeType.IsGenericParameter.