System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (3)
123internal RoDefinitionType? GetTypeCore(string ns, string name, bool ignoreCase, out Exception? e) => GetTypeCore(ns.ToUtf8(), name.ToUtf8(), ignoreCase, out e);
124internal RoDefinitionType? GetTypeCore(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, bool ignoreCase, out Exception? e)
126RoDefinitionType? result = GetRoManifestModule().GetTypeCore(ns, name, ignoreCase, out e);
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (10)
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)
66RoDefinitionType? type = module.GetEcmaAssembly().GetTypeCore(ns, name, ignoreCase: false, out Exception? e);
79RoDefinitionType? type = assembly.GetTypeCore(ns, name, ignoreCase: false, out Exception? e);
87RoDefinitionType outerType = ((TypeReferenceHandle)scope).ResolveTypeRef(module);
88RoDefinitionType? nestedType = outerType.GetNestedTypeCore(name);
94RoDefinitionType? type = module.GetTypeCore(ns, name, ignoreCase: false, out Exception? e);
107RoDefinitionType? type = targetModule.GetTypeCore(ns, name, ignoreCase: false, out Exception? e);
194RoDefinitionType declaringType = handle.ResolveTypeDef(module);
System\Reflection\TypeLoading\Modules\GetTypeCoreCache.cs (9)
21public bool TryGet(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? type)
26public RoDefinitionType GetOrAdd(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, RoDefinitionType type)
28if (_container.TryGetValue(ns, name, hashCode, out RoDefinitionType? prior))
34if (_container.TryGetValue(ns, name, hashCode, out RoDefinitionType? winner))
79public bool TryGetValue(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? value)
89RoDefinitionType actualValue = _entries[i]._value;
103public void Add(int hashCode, RoDefinitionType value)
216public RoDefinitionType _value;