System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (6)
20public static IEnumerable<CustomAttributeData> ToTrueCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module)
28public static CustomAttributeData ToCustomAttributeData(this CustomAttributeHandle handle, EcmaModule module) => new EcmaCustomAttributeData(handle, module);
30public static bool IsCustomAttributeDefined(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
35public static CustomAttributeData? TryFindCustomAttribute(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
43private static CustomAttributeHandle FindCustomAttributeByName(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
178public static MarshalAsAttribute ToMarshalAsAttribute(this BlobHandle blobHandle, EcmaModule module)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (16)
14public static RoType ResolveTypeDefRefOrSpec(this EntityHandle handle, EcmaModule module, in TypeContext typeContext)
28public static EcmaDefinitionType ResolveTypeDef(this TypeDefinitionHandle handle, EcmaModule module)
36private static readonly Func<EntityHandle, EcmaModule, EcmaDefinitionType> s_resolveTypeDef =
39public static RoDefinitionType ResolveTypeRef(this TypeReferenceHandle handle, EcmaModule module)
47private static readonly Func<EntityHandle, EcmaModule, RoDefinitionType> s_resolveTypeRef =
50private static RoDefinitionType ComputeTypeRefResolution(TypeReferenceHandle handle, EcmaModule module)
118public static RoType ResolveTypeSpec(this TypeSpecificationHandle handle, EcmaModule module, in TypeContext typeContext)
126public static EcmaGenericParameterType ResolveGenericParameter(this GenericParameterHandle handle, EcmaModule module)
134private static readonly Func<EntityHandle, EcmaModule, EcmaGenericParameterType> s_resolveGenericParam =
135(EntityHandle h, EcmaModule module) =>
148public static RoAssembly ResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module)
156public static RoAssembly? TryResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module, out Exception? e)
168public static RoAssembly ResolveToAssemblyOrExceptionAssembly(this AssemblyReferenceHandle handle, EcmaModule module)
173private static readonly Func<EntityHandle, EcmaModule, RoAssembly> s_resolveAssembly =
180public static T ResolveMethod<T>(this MethodDefinitionHandle handle, EcmaModule module, in TypeContext typeContext) where T : MethodBase
192private static RoInstantiationProviderType ResolveAndSpecializeType(this TypeDefinitionHandle handle, EcmaModule module, in TypeContext typeContext)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.MetadataTables.cs (10)
15internal MetadataTable<EcmaDefinitionType, EcmaModule> TypeDefTable
24private volatile MetadataTable<EcmaDefinitionType, EcmaModule>? _lazyTypeDefTable;
39internal MetadataTable<RoDefinitionType, EcmaModule> TypeRefTable
48private volatile MetadataTable<RoDefinitionType, EcmaModule>? _lazyTypeRefTable;
50internal MetadataTable<EcmaGenericParameterType, EcmaModule> GenericParamTable
59private volatile MetadataTable<EcmaGenericParameterType, EcmaModule>? _lazyGenericParamTable;
61internal MetadataTable<RoAssembly, EcmaModule> AssemblyRefTable
70private volatile MetadataTable<RoAssembly, EcmaModule>? _lazyAssemblyRefTable;
72private MetadataTable<T, EcmaModule> CreateTable<T>(TableIndex tableIndex) where T : class
74return new MetadataTable<T, EcmaModule>(Reader.GetTableRowCount(tableIndex));