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)
1925retval = reflectedType.Cache.GetConstructor(declaredType, methodHandle); 1931retval = reflectedType.Cache.GetGenericMethodInfo(methodHandle); 1933retval = reflectedType.Cache.GetMethod(declaredType, methodHandle); 1989FieldInfo retVal = reflectedType.Cache.GetField(fieldHandle); 1999reflectedType.Cache.GetPropertyList(MemberListType.All, null); 2506return Cache.GetDefaultMemberName(); 2523RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2548RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2569RuntimePropertyInfo[] cache = Cache.GetPropertyList(listType, name); 2592RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2614RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2638RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 2688RuntimeType[] candidates = Cache.GetInterfaceList(MemberListType.All, null); 2919RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2946RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2998RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3027RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3160RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3176RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3192RuntimePropertyInfo[] cache = runtimeType.Cache.GetPropertyList(MemberListType.CaseSensitive, property.Name); 3208RuntimeFieldInfo[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name); 3224RuntimeEventInfo[] cache = runtimeType.Cache.GetEventList(MemberListType.CaseSensitive, eventInfo.Name); 3240RuntimeType[] cache = runtimeType.Cache.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name); 3361string? ns = Cache.GetNameSpace(); 3548return Cache.GetGenericTypeDefinition(); 3572internal object[] GetEmptyArray() => Cache.GetEmptyArray(); 3808Type[] parameters = Cache.FunctionPointerReturnAndParameterTypes; 3826return Cache.FunctionPointerReturnAndParameterTypes[0]; 3842private string? GetCachedName(TypeNameKind kind) => Cache.GetName(kind); 3844public override Type? DeclaringType => Cache.GetEnclosingType(); 4062internal 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;