7 types derived from MethodDesc
System.Private.TypeLoader (7)
Internal\TypeSystem\ArrayMethod.Runtime.cs (1)
11
public partial class ArrayMethod :
MethodDesc
Internal\TypeSystem\InstantiatedMethod.Runtime.cs (1)
15
public sealed partial class InstantiatedMethod :
MethodDesc
Internal\TypeSystem\MethodForInstantiatedType.Runtime.cs (1)
11
public sealed partial class MethodForInstantiatedType :
MethodDesc
Internal\TypeSystem\NoMetadataMethodDesc.cs (1)
14
internal abstract class NoMetadataMethodDesc :
MethodDesc
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ArrayType.cs (1)
182
public sealed partial class ArrayMethod :
MethodDesc
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
10
public sealed partial class InstantiatedMethod :
MethodDesc
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
10
public sealed partial class MethodForInstantiatedType :
MethodDesc
113 references to MethodDesc
System.Private.TypeLoader (113)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
306
internal
MethodDesc
Method;
396
internal
MethodDesc
Method;
464
var
genericMethod = nativeLayoutInfoLoadContext.GetMethod(ref parser);
506
var
method = nativeLayoutInfoLoadContext.GetMethod(ref parser);
536
var
method = nativeLayoutInfoLoadContext.GetMethod(ref parser);
581
MethodDesc
constrainedMethod = nativeLayoutInfoLoadContext.GetMethod(ref parser);
Internal\Runtime\TypeLoader\NativeLayoutInfoLoadContext.cs (2)
179
internal
MethodDesc
GetMethod(ref NativeParser parser)
195
MethodDesc
retVal;
Internal\Runtime\TypeLoader\TemplateLocator.cs (1)
80
var
canonForm = concreteMethod.GetCanonMethodTarget(kind);
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
98
public void PrepareMethod(
MethodDesc
method)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (1)
192
public
MethodDesc
GetMethodDescForRuntimeMethodHandle(TypeSystemContext context, RuntimeMethodHandle runtimeMethodHandle)
Internal\TypeSystem\RuntimeMethodDesc.Canon.cs (1)
17
public override
MethodDesc
GetCanonMethodTarget(CanonicalFormKind kind)
Internal\TypeSystem\RuntimeMethodDesc.cs (3)
129
public override
MethodDesc
GetTypicalMethodDefinition()
143
public override
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
145
MethodDesc
method = this;
Internal\TypeSystem\ThrowHelper.cs (1)
42
public static void ThrowInvalidProgramException(ExceptionStringID id,
MethodDesc
method)
Internal\TypeSystem\TypeSystemContext.Runtime.cs (11)
341
public class RuntimeMethodKeyHashtable : LockFreeReaderHashtable<RuntimeMethodKey,
MethodDesc
>
348
protected override int GetValueHashCode(
MethodDesc
value)
353
protected override bool CompareKeyToValue(RuntimeMethodKey key,
MethodDesc
value)
390
protected override bool CompareValueToValue(
MethodDesc
value1,
MethodDesc
value2)
424
protected override
MethodDesc
CreateValueFromKey(RuntimeMethodKey key)
432
MethodDesc
typicalMethod = key._owningType.Context.ResolveRuntimeMethod(key._unboxingStub, key._asyncVariant, key._returnDroppingAsyncThunk, (DefType)key._owningType.GetTypeDefinition(), key._methodNameAndSignature);
449
internal
MethodDesc
ResolveRuntimeMethod(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType, MethodNameAndSignature nameAndSignature)
486
public
MethodDesc
ResolveGenericMethodInstantiation(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType, MethodNameAndSignature nameAndSignature, Instantiation methodInstantiation)
488
var
uninstantiatedMethod = ResolveRuntimeMethod(unboxingStub, asyncVariant, returnDroppingAsyncThunk, owningType, nameAndSignature);
490
MethodDesc
returnedMethod;
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\ArrayType.Canon.cs (1)
31
public override
MethodDesc
GetCanonMethodTarget(CanonicalFormKind kind)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (2)
21
public override
MethodDesc
GetCanonMethodTarget(CanonicalFormKind kind)
28
MethodDesc
openMethodOnCanonicalizedType = _methodDef.GetCanonMethodTarget(kind);
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\MethodDesc.Canon.cs (1)
17
public virtual
MethodDesc
GetCanonMethodTarget(CanonicalFormKind kind)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\MethodForInstantiatedType.Canon.cs (1)
14
public override
MethodDesc
GetCanonMethodTarget(CanonicalFormKind kind)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ArrayType.cs (8)
48
internal
MethodDesc
[] _methods;
106
MethodDesc
[] methods = new
MethodDesc
[(int)ArrayMethodKind.Ctor + numCtors];
114
public override IEnumerable<
MethodDesc
> GetMethods()
121
public override IEnumerable<
MethodDesc
> GetVirtualMethods()
123
return
MethodDesc
.EmptyMethods;
126
public
MethodDesc
GetArrayMethod(ArrayMethodKind kind)
326
public override
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\CastingHelper.cs (1)
218
if (thisType.AssociatedTypeOrMethod is
MethodDesc
method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (5)
12
private
MethodDesc
_methodDef;
17
internal InstantiatedMethod(
MethodDesc
methodDef, Instantiation instantiation)
29
internal InstantiatedMethod(
MethodDesc
methodDef, Instantiation instantiation, int hashcode)
159
public override
MethodDesc
GetMethodDefinition()
164
public override
MethodDesc
GetTypicalMethodDefinition()
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedType.cs (14)
146
public override IEnumerable<
MethodDesc
> GetMethods()
148
foreach (
var
typicalMethodDef in _typeDef.GetMethods())
154
public override IEnumerable<
MethodDesc
> GetVirtualMethods()
156
foreach (
var
typicalMethodDef in _typeDef.GetVirtualMethods())
163
public override
MethodDesc
GetMethod(ReadOnlySpan<byte> name, MethodSignature signature, Instantiation substitution)
165
MethodDesc
typicalMethodDef = _typeDef.GetMethod(name, signature, substitution);
171
public override
MethodDesc
GetMethodWithEquivalentSignature(ReadOnlySpan<byte> name, MethodSignature signature, Instantiation substitution)
173
MethodDesc
typicalMethodDef = _typeDef.GetMethodWithEquivalentSignature(name, signature, substitution);
179
public override
MethodDesc
GetStaticConstructor()
181
MethodDesc
typicalCctor = _typeDef.GetStaticConstructor();
187
public override
MethodDesc
GetDefaultConstructor()
189
MethodDesc
typicalCtor = _typeDef.GetDefaultConstructor();
195
public override
MethodDesc
GetFinalizer()
197
MethodDesc
typicalFinalizer = _typeDef.GetFinalizer();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (8)
458
public static readonly
MethodDesc
[] EmptyMethods = new
MethodDesc
[0];
505
Debug.Assert(o is not
MethodDesc
|| ReferenceEquals(((
MethodDesc
)o).Context, this.Context));
676
public virtual
MethodDesc
GetMethodDefinition()
697
public virtual
MethodDesc
GetTypicalMethodDefinition()
734
public virtual
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
757
MethodDesc
method = this;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodForInstantiatedType.cs (4)
12
private readonly
MethodDesc
_typicalMethodDef;
17
internal MethodForInstantiatedType(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType)
27
internal MethodForInstantiatedType(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType, int hashcode)
135
public override
MethodDesc
GetTypicalMethodDefinition()
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ThrowHelper.Common.cs (3)
36
public static void ThrowTypeLoadException(ExceptionStringID id,
MethodDesc
method)
55
public static string OwningModule(
MethodDesc
method)
92
public static string Method(
MethodDesc
method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeDesc.cs (12)
502
public virtual IEnumerable<
MethodDesc
> GetMethods()
504
return
MethodDesc
.EmptyMethods;
510
public virtual IEnumerable<
MethodDesc
> GetVirtualMethods()
512
foreach (
MethodDesc
method in GetMethods())
523
public
MethodDesc
GetMethod(ReadOnlySpan<byte> name, MethodSignature signature)
535
public virtual
MethodDesc
GetMethod(ReadOnlySpan<byte> name, MethodSignature signature, Instantiation substitution)
537
foreach (
var
method in GetMethods())
548
public virtual
MethodDesc
GetMethodWithEquivalentSignature(ReadOnlySpan<byte> name, MethodSignature signature, Instantiation substitution)
550
foreach (
var
method in GetMethods())
565
public virtual
MethodDesc
GetStaticConstructor()
574
public virtual
MethodDesc
GetDefaultConstructor()
652
public virtual
MethodDesc
GetFinalizer()
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (11)
354
private
MethodDesc
_methodDef;
358
public InstantiatedMethodKey(
MethodDesc
methodDef, Instantiation instantiation)
366
public
MethodDesc
MethodDef
442
public InstantiatedMethod GetInstantiatedMethod(
MethodDesc
methodDef, Instantiation instantiation)
454
private
MethodDesc
_typicalMethodDef;
458
public MethodForInstantiatedTypeKey(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType)
465
public
MethodDesc
TypicalMethodDef
515
public
MethodDesc
GetMethodForInstantiatedType(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType)
651
protected internal virtual IEnumerable<
MethodDesc
> GetAllMethods(TypeDesc type)
656
protected internal virtual IEnumerable<
MethodDesc
> GetAllVirtualMethods(TypeDesc type)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\VirtualMethodAlgorithm.cs (15)
23
public abstract
MethodDesc
ResolveInterfaceMethodToVirtualMethodOnType(
MethodDesc
interfaceMethod, TypeDesc currentType);
25
public abstract
MethodDesc
ResolveVariantInterfaceMethodToVirtualMethodOnType(
MethodDesc
interfaceMethod, TypeDesc currentType);
27
public abstract
MethodDesc
ResolveInterfaceMethodToStaticVirtualMethodOnType(
MethodDesc
interfaceMethod, TypeDesc currentType);
29
public abstract
MethodDesc
ResolveVariantInterfaceMethodToStaticVirtualMethodOnType(
MethodDesc
interfaceMethod, TypeDesc currentType);
31
public abstract DefaultInterfaceMethodResolution ResolveInterfaceMethodToDefaultImplementationOnType(
MethodDesc
interfaceMethod, TypeDesc currentType, out
MethodDesc
impl);
33
public abstract DefaultInterfaceMethodResolution ResolveVariantInterfaceMethodToDefaultImplementationOnType(
MethodDesc
interfaceMethod, TypeDesc currentType, out
MethodDesc
impl);
38
public abstract
MethodDesc
FindVirtualFunctionTargetMethodOnObjectType(
MethodDesc
targetMethod, TypeDesc objectType);
43
public abstract IEnumerable<
MethodDesc
> ComputeAllVirtualSlots(TypeDesc type);