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