37 references to Cache
System.Private.CoreLib (37)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
174TypeCode typeCode = Cache.TypeCode; 180Cache.TypeCode = typeCode;
src\System\RuntimeType.CoreCLR.cs (31)
1906retval = reflectedType.Cache.GetConstructor(declaredType, methodHandle); 1912retval = reflectedType.Cache.GetGenericMethodInfo(methodHandle); 1914retval = reflectedType.Cache.GetMethod(declaredType, methodHandle); 1970FieldInfo retVal = reflectedType.Cache.GetField(fieldHandle); 1980reflectedType.Cache.GetPropertyList(MemberListType.All, null); 2487return Cache.GetDefaultMemberName(); 2504RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2529RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2550RuntimePropertyInfo[] cache = Cache.GetPropertyList(listType, name); 2573RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2595RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2619RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 2669RuntimeType[] candidates = Cache.GetInterfaceList(MemberListType.All, null); 2900RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2927RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2979RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3008RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3141RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3157RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3173RuntimePropertyInfo[] cache = runtimeType.Cache.GetPropertyList(MemberListType.CaseSensitive, property.Name); 3189RuntimeFieldInfo[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name); 3205RuntimeEventInfo[] cache = runtimeType.Cache.GetEventList(MemberListType.CaseSensitive, eventInfo.Name); 3221RuntimeType[] cache = runtimeType.Cache.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name); 3342string? ns = Cache.GetNameSpace(); 3530return Cache.GetGenericTypeDefinition(); 3554internal object[] GetEmptyArray() => Cache.GetEmptyArray(); 3790Type[] parameters = Cache.FunctionPointerReturnAndParameterTypes; 3808return Cache.FunctionPointerReturnAndParameterTypes[0]; 3824private string? GetCachedName(TypeNameKind kind) => Cache.GetName(kind); 3826public override Type? DeclaringType => Cache.GetEnclosingType(); 4044internal void InvalidateCachedNestedType() => Cache.InvalidateCachedNestedType();
src\System\RuntimeType.GenericCache.cs (4)
53ref IGenericCacheEntry? genericCache = ref type.Cache.GenericCache; 76ref IGenericCacheEntry? genericCache = ref type.Cache.GenericCache; 96ref IGenericCacheEntry? genericCache = ref type.Cache.GenericCache; 135ref IGenericCacheEntry? genericCache = ref type.Cache.GenericCache;