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