9 instantiations of RuntimeMethodHandle
mscorlib (7)
system\reflection\ConstructorInfo.cs (2)
372
return new
RuntimeMethodHandle
(this);
516
return new
RuntimeMethodHandle
(this);
system\reflection\emit\dynamicmethod.cs (1)
595
return new
RuntimeMethodHandle
(m_methodHandle);
system\reflection\methodinfo.cs (2)
383
return new
RuntimeMethodHandle
(this);
623
return new
RuntimeMethodHandle
(this);
system\runtimehandles.cs (2)
1025
get { return new
RuntimeMethodHandle
(); }
1962
return new
RuntimeMethodHandle
(ResolveMethodHandleInternal(GetRuntimeModule(), methodToken, typeInstantiationContext, methodInstantiationContext));
System (1)
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
127
return new
RuntimeMethodHandle
();
System.Workflow.Activities (1)
Rules\RuleValidation.cs (1)
750
get { return new
RuntimeMethodHandle
(); }
189 references to RuntimeMethodHandle
mscorlib (164)
system\delegate.cs (4)
237
RuntimeType declaringType =
RuntimeMethodHandle
.GetDeclaringType(method);
241
bool isStatic = (
RuntimeMethodHandle
.GetAttributes(method) & MethodAttributes.Static) != (MethodAttributes)0;
606
internal unsafe static Delegate CreateDelegateNoSecurityCheck(Type type, Object target,
RuntimeMethodHandle
method)
633
RuntimeMethodHandle
.GetDeclaringType(method.GetMethodInfo()),
system\diagnostics\stacktrace.cs (1)
232
IRuntimeMethodInfo mhReal =
RuntimeMethodHandle
.GetTypicalMethodDefinition(new RuntimeMethodInfoStub(mh, this));
system\multicastdelegate.cs (1)
586
RuntimeType declaringType =
RuntimeMethodHandle
.GetDeclaringType(method);
system\reflection\Associates.cs (2)
72
MethodAttributes methAttr =
RuntimeMethodHandle
.GetAttributes(associateMethodHandle);
101
int slot =
RuntimeMethodHandle
.GetSlot(associateMethodHandle);
system\reflection\cominterfaces.cs (3)
319
RuntimeMethodHandle
MethodHandle { get; }
377
RuntimeMethodHandle
MethodHandle { get; }
441
RuntimeMethodHandle
MethodHandle { get; }
system\reflection\ConstructorInfo.cs (18)
238
invocationFlags |=
RuntimeMethodHandle
.GetSecurityFlags(this);
273
Contract.Ensures(methodAttributes ==
RuntimeMethodHandle
.GetAttributes(handle));
370
internal
RuntimeMethodHandle
GetMethodHandle()
441
get { return
RuntimeMethodHandle
.GetName(this); }
465
get { return
RuntimeMethodHandle
.GetMethodDef(this); }
506
return
RuntimeMethodHandle
.GetImplAttributes(this);
509
public override
RuntimeMethodHandle
MethodHandle
638
RuntimeMethodHandle
.PerformSecurityCheck(obj, this, m_declaringType, (uint)m_invocationFlags);
653
Object retValue =
RuntimeMethodHandle
.InvokeMethod(obj, arguments, sig, false);
659
return
RuntimeMethodHandle
.InvokeMethod(obj, null, sig, false);
669
MethodBody mb =
RuntimeMethodHandle
.GetMethodBody(this, ReflectedTypeInternal);
677
get { return
RuntimeMethodHandle
.IsSecurityCritical(this); }
682
get { return
RuntimeMethodHandle
.IsSecuritySafeCritical(this); }
687
get { return
RuntimeMethodHandle
.IsSecurityTransparent(this); }
731
RuntimeMethodHandle
.PerformSecurityCheck(null, this, m_declaringType, (uint)(m_invocationFlags | INVOCATION_FLAGS.INVOCATION_FLAGS_CONSTRUCTOR_INVOKE));
753
Object retValue =
RuntimeMethodHandle
.InvokeMethod(null, arguments, sig, true);
759
return
RuntimeMethodHandle
.InvokeMethod(null, null, sig, true);
788
RuntimeMethodHandle
.SerializationInvoke(this, target, info, ref context);
system\reflection\customattribute.cs (3)
1711
RuntimeMethodHandle
.CheckLinktimeDemands(ctor, decoratedModule, isDecoratedTargetSecurityTransparent);
1801
RuntimeMethodHandle
.CheckLinktimeDemands(setMethod, decoratedModule, isDecoratedTargetSecurityTransparent);
1973
return
RuntimeMethodHandle
.IsCAVisibleFromDecoratedType(attributeType.TypeHandle, ctor, parentTypeHandle, decoratedModule);
system\reflection\emit\constructorbuilder.cs (1)
139
public override
RuntimeMethodHandle
MethodHandle
system\reflection\emit\dynamicilgenerator.cs (12)
786
if (
RuntimeMethodHandle
.GetResolver(m_methodHandle) != null)
798
RuntimeMethodHandle
.Destroy(m_methodHandle);
945
if (handle is
RuntimeMethodHandle
)
947
methodHandle = ((
RuntimeMethodHandle
)handle).Value;
1142
public int GetTokenFor(
RuntimeMethodHandle
method)
1150
public int GetTokenFor(
RuntimeMethodHandle
method, RuntimeTypeHandle contextType)
1228
public int GetTokenFor(
RuntimeMethodHandle
method)
1233
if (methodReal != null && !
RuntimeMethodHandle
.IsDynamicMethod(rmhi))
1235
RuntimeType type =
RuntimeMethodHandle
.GetDeclaringType(rmhi);
1250
public int GetTokenFor(
RuntimeMethodHandle
method, RuntimeTypeHandle typeContext)
1290
internal
RuntimeMethodHandle
m_methodHandle;
1293
internal GenericMethodInfo(
RuntimeMethodHandle
methodHandle, RuntimeTypeHandle context)
system\reflection\emit\dynamicmethod.cs (11)
469
RuntimeType callingType =
RuntimeMethodHandle
.GetCallerType(ref stackMark);
498
RuntimeType callingType =
RuntimeMethodHandle
.GetCallerType(ref stackMark);
580
internal unsafe
RuntimeMethodHandle
GetMethodDescriptor() {
613
public override
RuntimeMethodHandle
MethodHandle { get { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod")); } }
642
return
RuntimeMethodHandle
.IsSecurityCritical(m_methodHandle);
668
return
RuntimeMethodHandle
.IsSecuritySafeCritical(m_methodHandle);
694
return
RuntimeMethodHandle
.IsSecurityTransparent(m_methodHandle);
725
RuntimeMethodHandle
method = GetMethodDescriptor();
744
retValue =
RuntimeMethodHandle
.InvokeMethod(null, arguments, sig, false);
751
retValue =
RuntimeMethodHandle
.InvokeMethod(null, null, sig, false);
896
public override
RuntimeMethodHandle
MethodHandle {
system\reflection\emit\methodbuilder.cs (1)
597
public override
RuntimeMethodHandle
MethodHandle
system\reflection\emit\methodbuilderinstantiation.cs (1)
65
public override
RuntimeMethodHandle
MethodHandle { get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); } }
system\reflection\emit\symbolmethod.cs (1)
123
public override
RuntimeMethodHandle
MethodHandle
system\reflection\emit\xxxontypebuilderinstantiation.cs (2)
78
public override
RuntimeMethodHandle
MethodHandle { get { return m_method.MethodHandle; } }
175
public override
RuntimeMethodHandle
MethodHandle { get { return m_ctor.MethodHandle; } }
system\reflection\methodbase.cs (3)
62
public static MethodBase GetMethodFromHandle(
RuntimeMethodHandle
handle)
79
public static MethodBase GetMethodFromHandle(
RuntimeMethodHandle
handle, RuntimeTypeHandle declaringType)
175
public abstract
RuntimeMethodHandle
MethodHandle { get; }
system\reflection\methodinfo.cs (26)
210
invocationFlags =
RuntimeMethodHandle
.GetSecurityFlags(this);
258
Contract.Assert(methodAttributes ==
RuntimeMethodHandle
.GetAttributes(handle));
347
sbName.Append(
RuntimeMethodHandle
.ConstructInstantiation(this, format));
381
internal
RuntimeMethodHandle
GetMethodHandle()
397
int slot =
RuntimeMethodHandle
.GetSlot(this);
449
IRuntimeMethodInfo handle1 =
RuntimeMethodHandle
.StripMethodInstantiation(this);
450
IRuntimeMethodInfo handle2 =
RuntimeMethodHandle
.StripMethodInstantiation(mi);
525
m_name =
RuntimeMethodHandle
.GetName(this);
557
get { return
RuntimeMethodHandle
.GetMethodDef(this); }
566
get { return
RuntimeMethodHandle
.IsSecurityCritical(this); }
570
get { return
RuntimeMethodHandle
.IsSecuritySafeCritical(this); }
574
get { return
RuntimeMethodHandle
.IsSecurityTransparent(this); }
605
return
RuntimeMethodHandle
.GetImplAttributes(this);
616
public override
RuntimeMethodHandle
MethodHandle
645
MethodBody mb =
RuntimeMethodHandle
.GetMethodBody(this, ReflectedTypeInternal);
735
RuntimeMethodHandle
.PerformSecurityCheck(obj, this, m_declaringType, (uint)m_invocationFlags);
758
return
RuntimeMethodHandle
.InvokeMethod(obj, null, Signature, false);
761
Object retValue =
RuntimeMethodHandle
.InvokeMethod(obj, arguments, Signature, false);
832
int slot =
RuntimeMethodHandle
.GetSlot(this);
959
RuntimeMethodHandle
.GetStubIfNeeded(new RuntimeMethodHandleInternal(this.m_handle), m_declaringType, methodInstantionRuntimeType)) as MethodInfo;
972
return
RuntimeMethodHandle
.GetMethodInstantiationInternal(this);
977
Type[] types =
RuntimeMethodHandle
.GetMethodInstantiationPublic(this);
992
return RuntimeType.GetMethodBase(m_declaringType,
RuntimeMethodHandle
.StripMethodInstantiation(this)) as MethodInfo;
997
get { return
RuntimeMethodHandle
.HasMethodInstantiation(this); }
1002
get { return
RuntimeMethodHandle
.IsGenericMethodDefinition(this); }
1057
IRuntimeMethodInfo method =
RuntimeMethodHandle
.GetCurrentMethod(ref stackMark);
system\reflection\module.cs (1)
723
Type declaringType =
RuntimeMethodHandle
.GetDeclaringType(methodHandle);
system\reflection\parameterinfo.cs (2)
295
int tkMethodDef =
RuntimeMethodHandle
.GetMethodDef(methodHandle);
302
MetadataImport scope = RuntimeTypeHandle.GetMetadataImport(
RuntimeMethodHandle
.GetDeclaringType(methodHandle));
system\rttype.cs (45)
330
MethodAttributes methodAttributes =
RuntimeMethodHandle
.GetAttributes(method);
638
if (!
RuntimeMethodHandle
.MatchesNameHash(methodHandle, filter.GetHashToMatch()))
640
Contract.Assert(!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)));
644
if (!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)))
653
(
RuntimeMethodHandle
.GetAttributes(methodHandle) & (MethodAttributes.RTSpecialName | MethodAttributes.Abstract | MethodAttributes.Virtual)) == (MethodAttributes.Abstract | MethodAttributes.Virtual) ||
654
(
RuntimeMethodHandle
.GetAttributes(methodHandle) & MethodAttributes.Static) == MethodAttributes.Static ||
655
RuntimeMethodHandle
.GetName(methodHandle).Equals(".ctor") ||
656
RuntimeMethodHandle
.GetName(methodHandle).Equals(".cctor") ||
657
RuntimeMethodHandle
.GetName(methodHandle).StartsWith("IL_STUB", StringComparison.Ordinal));
660
MethodAttributes methodAttributes =
RuntimeMethodHandle
.GetAttributes(methodHandle);
671
RuntimeMethodHandleInternal instantiatedHandle =
RuntimeMethodHandle
.GetStubIfNeeded(methodHandle, declaringType, null);
698
if (!
RuntimeMethodHandle
.MatchesNameHash(methodHandle, filter.GetHashToMatch()))
700
Contract.Assert(!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)));
704
if (!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)))
711
MethodAttributes methodAttributes =
RuntimeMethodHandle
.GetAttributes(methodHandle);
716
(
RuntimeMethodHandle
.GetAttributes(methodHandle) & MethodAttributes.RTSpecialName) == 0 ||
717
RuntimeMethodHandle
.GetName(methodHandle).Equals(".ctor") ||
718
RuntimeMethodHandle
.GetName(methodHandle).Equals(".cctor"));
732
methodSlot =
RuntimeMethodHandle
.GetSlot(methodHandle);
754
RuntimeMethodHandle
.GetDeclaringType(methodHandle) != declaringType);
779
RuntimeMethodHandleInternal instantiatedHandle =
RuntimeMethodHandle
.GetStubIfNeeded(methodHandle, declaringType, null);
812
if (!
RuntimeMethodHandle
.MatchesNameHash(methodHandle, filter.GetHashToMatch()))
814
Contract.Assert(!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)));
818
if (!filter.Match(
RuntimeMethodHandle
.GetUtf8Name(methodHandle)))
822
MethodAttributes methodAttributes =
RuntimeMethodHandle
.GetAttributes(methodHandle);
842
RuntimeMethodHandleInternal instantiatedHandle =
RuntimeMethodHandle
.GetStubIfNeeded(methodHandle, declaringType, null);
1439
int slot =
RuntimeMethodHandle
.GetSlot((RuntimeMethodInfo)associateMethod);
1815
LoaderAllocator la =
RuntimeMethodHandle
.GetLoaderAllocator(genericMethod);
1818
genericMethod,
RuntimeMethodHandle
.GetDeclaringType(genericMethod), this,
1819
RuntimeMethodHandle
.GetAttributes(genericMethod), (BindingFlags)(-1), la);
2005
if (
RuntimeMethodHandle
.IsDynamicMethod(methodHandle))
2007
Resolver resolver =
RuntimeMethodHandle
.GetResolver(methodHandle);
2016
RuntimeType declaredType =
RuntimeMethodHandle
.GetDeclaringType(methodHandle);
2037
RuntimeMethodHandle
.GetName(methodHandle), MemberTypes.Constructor | MemberTypes.Method,
2088
if (!
RuntimeMethodHandle
.IsGenericMethodDefinition(methodHandle))
2090
methodInstantiation =
RuntimeMethodHandle
.GetMethodInstantiationInternal(methodHandle);
2094
methodHandle =
RuntimeMethodHandle
.GetMethodFromCanonical(methodHandle, declaredType);
2112
methodHandle =
RuntimeMethodHandle
.GetStubIfNeeded(methodHandle, declaredType, methodInstantiation);
2115
if (
RuntimeMethodHandle
.IsConstructor(methodHandle))
2123
if (
RuntimeMethodHandle
.HasMethodInstantiation(methodHandle) && !
RuntimeMethodHandle
.IsGenericMethodDefinition(methodHandle))
3663
return GetMethodBase(
RuntimeMethodHandle
.GetDeclaringType(declaringMethod), declaringMethod);
5373
m_ctorAttributes =
RuntimeMethodHandle
.GetAttributes(m_hCtorMethodHandle);
5412
CtorDelegate ctor = (CtorDelegate)delegateCtorInfo.Invoke(new Object[] { null,
RuntimeMethodHandle
.GetFunctionPointer(ace.m_hCtorMethodHandle) });
5531
RuntimeMethodHandle
.PerformSecurityCheck(instance, ace.m_hCtorMethodHandle, this, (uint)INVOCATION_FLAGS.INVOCATION_FLAGS_CONSTRUCTOR_INVOKE);
system\runtime\compilerservices\runtimehelpers.cs (2)
99
public static void PrepareMethod(
RuntimeMethodHandle
method)
109
public static void PrepareMethod(
RuntimeMethodHandle
method, RuntimeTypeHandle[] instantiation)
system\runtime\remoting\stackbuildersink.cs (1)
520
RuntimeMethodHandle
md, Object[] args, Object server,
system\runtimehandles.cs (22)
1023
internal static
RuntimeMethodHandle
EmptyHandle
1042
private static IntPtr GetValueInternal(
RuntimeMethodHandle
rmh)
1102
if (!(obj is
RuntimeMethodHandle
))
1105
RuntimeMethodHandle
handle = (
RuntimeMethodHandle
)obj;
1110
public static bool operator ==(
RuntimeMethodHandle
left,
RuntimeMethodHandle
right)
1115
public static bool operator !=(
RuntimeMethodHandle
left,
RuntimeMethodHandle
right)
1122
public bool Equals(
RuntimeMethodHandle
handle)
1181
MethodAttributes retVal =
RuntimeMethodHandle
.GetAttributes(method.Value);
1213
RuntimeType type =
RuntimeMethodHandle
.GetDeclaringType(method.Value);
1228
int slot =
RuntimeMethodHandle
.GetSlot(method.Value);
1246
string name =
RuntimeMethodHandle
.GetName(method.Value);
1278
return (INVOCATION_FLAGS)
RuntimeMethodHandle
.GetSpecialSecurityFlags(handle);
1294
RuntimeMethodHandle
.PerformSecurityCheck(obj, method.Value, parent, invocationFlags);
1403
bool fRet =
RuntimeMethodHandle
.HasMethodInstantiation(method.Value);
1426
bool fRet =
RuntimeMethodHandle
.IsGenericMethodDefinition(method.Value);
1957
public
RuntimeMethodHandle
GetRuntimeMethodHandleFromMetadataToken(int methodToken) { return ResolveMethodHandle(methodToken); }
1958
public
RuntimeMethodHandle
ResolveMethodHandle(int methodToken) { return ResolveMethodHandle(methodToken, null, null); }
1960
public
RuntimeMethodHandle
ResolveMethodHandle(int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
1974
IRuntimeMethodInfo retVal = new RuntimeMethodInfoStub(handle,
RuntimeMethodHandle
.GetLoaderAllocator(handle));
system\security\securityruntime.cs (1)
56
return (System.RuntimeType.GetMethodBase(
RuntimeMethodHandle
.GetDeclaringType(rmh), rmh) as MethodInfo);
System (1)
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
124
public override
RuntimeMethodHandle
MethodHandle {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1955
public override
RuntimeMethodHandle
MethodHandle { get { return _info.MethodHandle; } }
System.Core (2)
Microsoft\Scripting\Compiler\ILGen.cs (2)
515
il.Emit(OpCodes.Call, typeof(MethodBase).GetMethod("GetMethodFromHandle", new Type[] { typeof(
RuntimeMethodHandle
), typeof(RuntimeTypeHandle) }));
517
il.Emit(OpCodes.Call, typeof(MethodBase).GetMethod("GetMethodFromHandle", new Type[] { typeof(
RuntimeMethodHandle
) }));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1955
public override
RuntimeMethodHandle
MethodHandle { get { return _info.MethodHandle; } }
System.Data.Entity (11)
System\Data\Metadata\Edm\EdmProperty.cs (4)
39
internal readonly System.
RuntimeMethodHandle
PropertyGetterHandle;
42
internal readonly System.
RuntimeMethodHandle
PropertySetterHandle;
70
PropertyGetterHandle = ((null != method) ? method.MethodHandle : default(System.
RuntimeMethodHandle
));
73
PropertySetterHandle = ((null != method) ? method.MethodHandle : default(System.
RuntimeMethodHandle
));
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (5)
186
private static Func<object, object> CreatePropertyGetter(RuntimeTypeHandle entityDeclaringType,
RuntimeMethodHandle
rmh)
188
if (default(
RuntimeMethodHandle
).Equals(rmh))
307
private static Action<object, object> CreatePropertySetter(RuntimeTypeHandle entityDeclaringType,
RuntimeMethodHandle
rmh, bool allowNull)
394
internal static void ValidateSetterProperty(RuntimeTypeHandle entityDeclaringType,
RuntimeMethodHandle
setterMethodHandle, out MethodInfo setterMethodInfo, out Type realType)
396
if (default(
RuntimeMethodHandle
).Equals(setterMethodHandle))
System\Data\Metadata\Edm\NavigationProperty.cs (2)
53
PropertyGetterHandle = ((null != method) ? method.MethodHandle : default(System.
RuntimeMethodHandle
));
71
internal readonly System.
RuntimeMethodHandle
PropertyGetterHandle;
System.Workflow.Activities (3)
Rules\RuleValidation.cs (3)
242
public override
RuntimeMethodHandle
MethodHandle
359
public override
RuntimeMethodHandle
MethodHandle
748
public override
RuntimeMethodHandle
MethodHandle
System.Workflow.ComponentModel (5)
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (2)
67
public override
RuntimeMethodHandle
MethodHandle
228
public override
RuntimeMethodHandle
MethodHandle
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (1)
337
public override
RuntimeMethodHandle
MethodHandle
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (2)
835
public override
RuntimeMethodHandle
MethodHandle
1124
public override
RuntimeMethodHandle
MethodHandle
System.WorkflowServices (1)
System\Workflow\Activities\ContractMethodInfo.cs (1)
106
public override
RuntimeMethodHandle
MethodHandle