47 references to GetMethod
ilc (3)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46
MethodDesc helperMethod = helperType?.
GetMethod
(methodName, null);
76
MethodDesc method = type.
GetMethod
(name, signature);
Program.cs (1)
803
MethodDesc 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)
58
return srType.
GetMethod
(ResourceAccessorGetStringMethodName, null) != null;
Compiler\LibraryInitializers.cs (1)
56
MethodDesc initializerMethod = containingType.
GetMethod
(LibraryInitializerMethodName, null);
Compiler\UsageBasedMetadataManager.cs (1)
307
MethodDesc invokeMethod = type.
GetMethod
("Invoke"u8, null);
IL\Stubs\StartupCode\NativeLibraryStartupMethod.cs (1)
77
MethodDesc runModuleInitializers = startup?.
GetMethod
("RunModuleInitializers"u8, null);
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (6)
88
MethodDesc initArgs = startup?.
GetMethod
(initArgsName, null);
97
MethodDesc initEntryAssembly = startup?.
GetMethod
("InitializeEntryAssembly"u8, null);
106
MethodDesc initApartmentState = startup?.
GetMethod
("InitializeApartmentState"u8, null);
123
MethodDesc runModuleInitializers = startup?.
GetMethod
("RunModuleInitializers"u8, null);
143
MethodDesc setLatchedExitCode = startup?.
GetMethod
("SetLatchedExitCode"u8, null);
144
MethodDesc shutdown = startup?.
GetMethod
("Shutdown"u8, null);
parent\parent\Common\JitInterface\WasmLowering.cs (1)
20
Debug.Assert(signature.Context.GetWellKnownType(WellKnownType.String).
GetMethod
(".ctor"u8, signature) != null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46
MethodDesc helperMethod = helperType?.
GetMethod
(methodName, null);
76
MethodDesc 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)
89
if (_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)
71
MethodDesc objectEquals = mdType.Context.GetWellKnownType(WellKnownType.Object).
GetMethod
("Equals"u8, null);
parent\parent\Common\TypeSystem\IL\Stubs\StreamIntrinsics.cs (2)
26
MethodDesc beginMethod = streamClass.
GetMethod
(isRead ? "BeginRead"u8 : "BeginWrite"u8, null);
27
MethodDesc endMethod = streamClass.
GetMethod
(isRead ? "EndRead"u8 : "EndWrite"u8, null);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (3)
684
codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).
GetMethod
("GetTypeFromHandle"u8, null)));
786
codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).
GetMethod
("GetTypeFromHandle"u8, null)));
1227
var getInstanceMethod = marshallerType.
GetMethod
(
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1701
var charPtrConstructor = Context.GetWellKnownType(WellKnownType.String).
GetMethod
(".ctor"u8,
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapperConstructor.cs (1)
73
InteropTypes.GetNativeFunctionPointerWrapper(Context).
GetMethod
(".ctor"u8, Signature)));
ILCompiler.ReadyToRun (8)
Compiler\CallChainProfile.cs (1)
235
var resolvedMethod = resolvedType.
GetMethod
(Encoding.UTF8.GetBytes(methodName), null);
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (1)
62
MethodDesc helperMethodDef = szArrayHelper.
GetMethod
(interfaceMethod.Name, null);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
3818
if (sig.Context.GetWellKnownType(WellKnownType.String).
GetMethod
(".ctor"u8, sig) is not null)
parent\parent\Common\JitInterface\WasmLowering.cs (1)
20
Debug.Assert(signature.Context.GetWellKnownType(WellKnownType.String).
GetMethod
(".ctor"u8, signature) != null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46
MethodDesc helperMethod = helperType?.
GetMethod
(methodName, null);
76
MethodDesc method = type.
GetMethod
(name, signature);
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
71
MethodDesc objectEquals = mdType.Context.GetWellKnownType(WellKnownType.Object).
GetMethod
("Equals"u8, null);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1701
var charPtrConstructor = Context.GetWellKnownType(WellKnownType.String).
GetMethod
(".ctor"u8,
ILCompiler.RyuJit (2)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46
MethodDesc helperMethod = helperType?.
GetMethod
(methodName, null);
76
MethodDesc method = type.
GetMethod
(name, signature);
ILCompiler.TypeSystem (6)
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (2)
182
var invoke1 = type1.
GetMethod
("Invoke"u8, null);
183
var invoke2 = type2.
GetMethod
("Invoke"u8, null);
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
90
return type.
GetMethod
(".ctor"u8, sig);
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
415
MethodDesc decl = objectType.
GetMethod
("Finalize"u8, null);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
46
MethodDesc helperMethod = helperType?.
GetMethod
(methodName, null);
76
MethodDesc method = type.
GetMethod
(name, signature);