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)
184
public sealed partial class ArrayMethod :
MethodDesc
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
12
public sealed partial class InstantiatedMethod :
MethodDesc
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
12
public sealed partial class MethodForInstantiatedType :
MethodDesc
113 references to MethodDesc
System.Private.TypeLoader (113)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
312
internal
MethodDesc
Method;
402
internal
MethodDesc
Method;
470
var
genericMethod = nativeLayoutInfoLoadContext.GetMethod(ref parser);
512
var
method = nativeLayoutInfoLoadContext.GetMethod(ref parser);
542
var
method = nativeLayoutInfoLoadContext.GetMethod(ref parser);
587
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)
203
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)
130
public override
MethodDesc
GetTypicalMethodDefinition()
144
public override
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
146
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)
50
internal
MethodDesc
[] _methods;
108
MethodDesc
[] methods = new
MethodDesc
[(int)ArrayMethodKind.Ctor + numCtors];
116
public override IEnumerable<
MethodDesc
> GetMethods()
123
public override IEnumerable<
MethodDesc
> GetVirtualMethods()
125
return
MethodDesc
.EmptyMethods;
128
public
MethodDesc
GetArrayMethod(ArrayMethodKind kind)
328
public override
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\CastingHelper.cs (1)
273
if (thisType.AssociatedTypeOrMethod is
MethodDesc
method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (5)
14
private
MethodDesc
_methodDef;
19
internal InstantiatedMethod(
MethodDesc
methodDef, Instantiation instantiation)
31
internal InstantiatedMethod(
MethodDesc
methodDef, Instantiation instantiation, int hashcode)
161
public override
MethodDesc
GetMethodDefinition()
166
public override
MethodDesc
GetTypicalMethodDefinition()
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedType.cs (14)
147
public override IEnumerable<
MethodDesc
> GetMethods()
149
foreach (
var
typicalMethodDef in _typeDef.GetMethods())
155
public override IEnumerable<
MethodDesc
> GetVirtualMethods()
157
foreach (
var
typicalMethodDef in _typeDef.GetVirtualMethods())
164
public override
MethodDesc
GetMethod(Utf8Span name, MethodSignature signature, Instantiation substitution)
166
MethodDesc
typicalMethodDef = _typeDef.GetMethod(name, signature, substitution);
172
public override
MethodDesc
GetMethodWithEquivalentSignature(Utf8Span name, MethodSignature signature, Instantiation substitution)
174
MethodDesc
typicalMethodDef = _typeDef.GetMethodWithEquivalentSignature(name, signature, substitution);
180
public override
MethodDesc
GetStaticConstructor()
182
MethodDesc
typicalCctor = _typeDef.GetStaticConstructor();
188
public override
MethodDesc
GetDefaultConstructor()
190
MethodDesc
typicalCtor = _typeDef.GetDefaultConstructor();
196
public override
MethodDesc
GetFinalizer()
198
MethodDesc
typicalFinalizer = _typeDef.GetFinalizer();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (8)
459
public static readonly
MethodDesc
[] EmptyMethods = new
MethodDesc
[0];
506
Debug.Assert(o is not
MethodDesc
|| ReferenceEquals(((
MethodDesc
)o).Context, this.Context));
679
public virtual
MethodDesc
GetMethodDefinition()
700
public virtual
MethodDesc
GetTypicalMethodDefinition()
737
public virtual
MethodDesc
InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
760
MethodDesc
method = this;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodForInstantiatedType.cs (4)
14
private readonly
MethodDesc
_typicalMethodDef;
19
internal MethodForInstantiatedType(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType)
29
internal MethodForInstantiatedType(
MethodDesc
typicalMethodDef, InstantiatedType instantiatedType, int hashcode)
137
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)
504
public virtual IEnumerable<
MethodDesc
> GetMethods()
506
return
MethodDesc
.EmptyMethods;
512
public virtual IEnumerable<
MethodDesc
> GetVirtualMethods()
514
foreach (
MethodDesc
method in GetMethods())
525
public
MethodDesc
GetMethod(Utf8Span name, MethodSignature signature)
537
public virtual
MethodDesc
GetMethod(Utf8Span name, MethodSignature signature, Instantiation substitution)
539
foreach (
var
method in GetMethods())
550
public virtual
MethodDesc
GetMethodWithEquivalentSignature(Utf8Span name, MethodSignature signature, Instantiation substitution)
552
foreach (
var
method in GetMethods())
567
public virtual
MethodDesc
GetStaticConstructor()
576
public virtual
MethodDesc
GetDefaultConstructor()
654
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);