21 references to TypeDefinition
System.Reflection.MetadataLoadContext (21)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (7)
21
foreach (MethodDefinitionHandle handle in
TypeDefinition
.GetMethods())
35
foreach (MethodDefinitionHandle handle in
TypeDefinition
.GetMethods())
49
foreach (EventDefinitionHandle handle in
TypeDefinition
.GetEvents())
59
foreach (FieldDefinitionHandle handle in
TypeDefinition
.GetFields())
69
foreach (PropertyDefinitionHandle handle in
TypeDefinition
.GetProperties())
79
foreach (TypeDefinitionHandle handle in
TypeDefinition
.GetNestedTypes())
91
foreach (TypeDefinitionHandle handle in
TypeDefinition
.GetNestedTypes())
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (14)
34
if (!
TypeDefinition
.IsNested)
37
return
TypeDefinition
.GetDeclaringType().ResolveTypeDef(GetEcmaModule());
40
protected sealed override string ComputeName() =>
TypeDefinition
.Name.GetString(Reader).EscapeTypeNameIdentifier();
47
return
TypeDefinition
.Namespace.GetStringOrNull(Reader)?.EscapeTypeNameIdentifier();
50
protected sealed override TypeAttributes ComputeAttributeFlags() =>
TypeDefinition
.Attributes;
54
EntityHandle baseTypeHandle =
TypeDefinition
.BaseType;
65
foreach (InterfaceImplementationHandle h in
TypeDefinition
.GetInterfaceImplementations())
72
protected sealed override IEnumerable<CustomAttributeData> GetTrueCustomAttributes() =>
TypeDefinition
.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule());
74
internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) =>
TypeDefinition
.GetCustomAttributes().IsCustomAttributeDefined(ns, name, GetEcmaModule());
75
internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) =>
TypeDefinition
.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
86
GenericParameterHandleCollection gps =
TypeDefinition
.GetGenericParameters();
112
foreach (FieldDefinitionHandle handle in
TypeDefinition
.GetFields())
129
TypeLayout layout =
TypeDefinition
.GetLayout();
137
TypeDefinition td =
TypeDefinition
;