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

◆ DeclaringMethod

override MethodBase System.RuntimeType.DeclaringMethod
get

Definition at line 1518 of file RuntimeType.cs.

1519 {
1520 get
1521 {
1522 if (!IsGenericParameter)
1523 {
1524 throw new InvalidOperationException(SR.Arg_NotGenericParameter);
1525 }
1526 IRuntimeMethodInfo declaringMethod = RuntimeTypeHandle.GetDeclaringMethod(this);
1527 if (declaringMethod == null)
1528 {
1529 return null;
1530 }
1531 return GetMethodBase(RuntimeMethodHandle.GetDeclaringType(declaringMethod), declaringMethod);
1532 }
1533 }
override bool IsGenericParameter
static MethodBase GetMethodBase(RuntimeModule scope, int typeMetadataToken)