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