29 references to Loader
System.Reflection.MetadataLoadContext (29)
System\Reflection\DefaultBinder.cs (1)
22private bool IsImplementedByMetadataLoadContext(Type type) => type is RoType roType && roType.Loader == _loader;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
117if (!(typeArgument is RoType roTypeArgument && roTypeArgument.Loader == Loader))
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (3)
41binder ??= Loader.GetDefaultBinder(); 98binder ??= Loader.GetDefaultBinder(); 159binder ??= Loader.GetDefaultBinder();
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (1)
76protected ref readonly GenericParameter GenericParameter { get { Loader.DisposeCheck(); return ref _neverAccessThisExceptThroughGenericParameterProperty; } }
System\Reflection\TypeLoading\Types\RoArrayType.cs (5)
37internal sealed override RoType? ComputeBaseTypeWithoutDesktopQuirk() => Loader.GetCoreType(CoreType.Array); 47RoType? ifc = Loader.TryGetCoreType(coreType); 79RoType systemInt32 = Loader.GetCoreType(CoreType.Int32); 156RoType systemInt32 = Loader.GetCoreType(CoreType.Int32); 158RoType systemVoid = Loader.GetCoreType(CoreType.Void);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (6)
57public sealed override string ToString() => Loader.GetDisposedString() ?? FullName!; 72ConstructorInfo? ci = Loader.TryGetComImportCtor(); 115if (!(typeArgument is RoType roTypeArgument && roTypeArgument.Loader == Loader)) 139if (cta.ArgumentType != Loader.TryGetCoreType(CoreType.String)) 187CoreTypes ct = Loader.GetAllFoundCoreTypes();
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
36public sealed override string ToString() => Loader.GetDisposedString() ?? Name; 74return Loader.GetCoreType(CoreType.Object);
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (4)
46private Type CDeclType => Loader.GetCoreType(CoreType.CallConvCdecl); 47private Type StdCallType => Loader.GetCoreType(CoreType.CallConvStdcall); 48private Type ThisCallType => Loader.GetCoreType(CoreType.CallConvThiscall); 49private Type FastCallType => Loader.GetCoreType(CoreType.CallConvFastcall);
System\Reflection\TypeLoading\Types\RoType.cs (4)
170baseType = Loader.GetCoreType(CoreType.Object); 261if (!(c is RoType roType && roType.Loader == Loader)) 264return Assignability.IsAssignableFrom(this, c, Loader.GetAllFoundCoreTypes());
System\Reflection\TypeLoading\Types\RoType.TypeClassification.cs (2)
52CoreTypes coreTypes = Loader.GetAllFoundCoreTypes(); 73CoreTypes coreTypes = Loader.GetAllFoundCoreTypes();