40 references to Cache
System.Private.CoreLib (40)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
193TypeCode typeCode = Cache.TypeCode; 199Cache.TypeCode = typeCode;
src\System\RuntimeType.CoreCLR.cs (34)
1934retval = reflectedType.Cache.GetConstructor(declaredType, methodHandle); 1940retval = reflectedType.Cache.GetGenericMethodInfo(methodHandle); 1942retval = reflectedType.Cache.GetMethod(declaredType, methodHandle); 1998FieldInfo retVal = reflectedType.Cache.GetField(fieldHandle); 2008reflectedType.Cache.GetPropertyList(MemberListType.All, null); 2515return Cache.GetDefaultMemberName(); 2532RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2557RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2578RuntimePropertyInfo[] cache = Cache.GetPropertyList(listType, name); 2601RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2623RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2647RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 2697RuntimeType[] candidates = Cache.GetInterfaceList(MemberListType.All, null); 2944RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2971RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 3023RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3052RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3185RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3201RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3217RuntimePropertyInfo[] cache = runtimeType.Cache.GetPropertyList(MemberListType.CaseSensitive, property.Name); 3233RuntimeFieldInfo[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name); 3249RuntimeEventInfo[] cache = runtimeType.Cache.GetEventList(MemberListType.CaseSensitive, eventInfo.Name); 3265RuntimeType[] cache = runtimeType.Cache.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name); 3368public override string? FullName => Cache.GetFullName(); 3370public override string? AssemblyQualifiedName => Cache.GetAssemblyQualifiedName(); 3376string? ns = Cache.GetNamespace(); 3565return Cache.GetGenericTypeDefinition(); 3589internal object[] GetEmptyArray() => Cache.GetEmptyArray(); 3843Type[] parameters = Cache.FunctionPointerReturnAndParameterTypes; 3861return Cache.FunctionPointerReturnAndParameterTypes[0]; 3867public override string ToString() => Cache.GetToString(); 3871public override string Name => Cache.GetName(); 3873public override Type? DeclaringType => Cache.GetEnclosingType(); 4098internal 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;