47 references to GetMethod
ilc (3)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46MethodDesc helperMethod = helperType?.GetMethod(methodName, null); 76MethodDesc method = type.GetMethod(name, signature);
Program.cs (1)
803MethodDesc method = owningType.GetMethod(Encoding.UTF8.GetBytes(singleMethodName), null);
ILCompiler.Compiler (28)
Compiler\CompilerTypeSystemContext.GetFieldMethodOverrides.cs (2)
82_objectEqualsMethod ??= GetWellKnownType(WellKnownType.Object).GetMethod("Equals"u8, null); 122_objectEqualsMethod ??= GetWellKnownType(WellKnownType.Object).GetMethod("Equals"u8, null);
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
26=> factory.MethodEntrypoint(factory.TypeSystemContext.SystemModule.GetType("Internal.Metadata.NativeFormat"u8, entityName).GetMethod(propertyName, null));
Compiler\DependencyAnalysis\InlineableStringsResourceNode.cs (1)
58return srType.GetMethod(ResourceAccessorGetStringMethodName, null) != null;
Compiler\LibraryInitializers.cs (1)
56MethodDesc initializerMethod = containingType.GetMethod(LibraryInitializerMethodName, null);
Compiler\UsageBasedMetadataManager.cs (1)
307MethodDesc invokeMethod = type.GetMethod("Invoke"u8, null);
IL\Stubs\StartupCode\NativeLibraryStartupMethod.cs (1)
77MethodDesc runModuleInitializers = startup?.GetMethod("RunModuleInitializers"u8, null);
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (6)
88MethodDesc initArgs = startup?.GetMethod(initArgsName, null); 97MethodDesc initEntryAssembly = startup?.GetMethod("InitializeEntryAssembly"u8, null); 106MethodDesc initApartmentState = startup?.GetMethod("InitializeApartmentState"u8, null); 123MethodDesc runModuleInitializers = startup?.GetMethod("RunModuleInitializers"u8, null); 143MethodDesc setLatchedExitCode = startup?.GetMethod("SetLatchedExitCode"u8, null); 144MethodDesc shutdown = startup?.GetMethod("Shutdown"u8, null);
parent\parent\Common\JitInterface\WasmLowering.cs (1)
20Debug.Assert(signature.Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8, signature) != null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46MethodDesc helperMethod = helperType?.GetMethod(methodName, null); 76MethodDesc method = type.GetMethod(name, signature);
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
70_invokeMethod = delegateType.GetMethod("Invoke"u8, null);
parent\parent\Common\TypeSystem\IL\Stubs\ForwardDelegateCreationThunk.cs (1)
116_delegateType.GetMethod(".ctor"u8,
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
89if (_owningType.IsValueType && ComparerIntrinsics.CanCompareValueTypeBitsUntilOffset(_owningType, Context.GetWellKnownType(WellKnownType.Object).GetMethod("Equals"u8, null), out int lastFieldEndOffset))
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (1)
221.GetMethod("get_NativeFunctionPointer"u8, null)));
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
71MethodDesc objectEquals = mdType.Context.GetWellKnownType(WellKnownType.Object).GetMethod("Equals"u8, null);
parent\parent\Common\TypeSystem\IL\Stubs\StreamIntrinsics.cs (2)
26MethodDesc beginMethod = streamClass.GetMethod(isRead ? "BeginRead"u8 : "BeginWrite"u8, null); 27MethodDesc endMethod = streamClass.GetMethod(isRead ? "EndRead"u8 : "EndWrite"u8, null);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (3)
684codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).GetMethod("GetTypeFromHandle"u8, null))); 786codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).GetMethod("GetTypeFromHandle"u8, null))); 1227var getInstanceMethod = marshallerType.GetMethod(
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1701var charPtrConstructor = Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8,
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapperConstructor.cs (1)
73InteropTypes.GetNativeFunctionPointerWrapper(Context).GetMethod(".ctor"u8, Signature)));
ILCompiler.ReadyToRun (8)
Compiler\CallChainProfile.cs (1)
235var resolvedMethod = resolvedType.GetMethod(Encoding.UTF8.GetBytes(methodName), null);
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (1)
62MethodDesc helperMethodDef = szArrayHelper.GetMethod(interfaceMethod.Name, null);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
3818if (sig.Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8, sig) is not null)
parent\parent\Common\JitInterface\WasmLowering.cs (1)
20Debug.Assert(signature.Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8, signature) != null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46MethodDesc helperMethod = helperType?.GetMethod(methodName, null); 76MethodDesc method = type.GetMethod(name, signature);
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
71MethodDesc objectEquals = mdType.Context.GetWellKnownType(WellKnownType.Object).GetMethod("Equals"u8, null);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1701var charPtrConstructor = Context.GetWellKnownType(WellKnownType.String).GetMethod(".ctor"u8,
ILCompiler.RyuJit (2)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46MethodDesc helperMethod = helperType?.GetMethod(methodName, null); 76MethodDesc method = type.GetMethod(name, signature);
ILCompiler.TypeSystem (6)
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (2)
182var invoke1 = type1.GetMethod("Invoke"u8, null); 183var invoke2 = type2.GetMethod("Invoke"u8, null);
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
90return type.GetMethod(".ctor"u8, sig);
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
415MethodDesc decl = objectType.GetMethod("Finalize"u8, null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46MethodDesc helperMethod = helperType?.GetMethod(methodName, null); 76MethodDesc method = type.GetMethod(name, signature);