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)
1933retval = reflectedType.Cache.GetConstructor(declaredType, methodHandle); 1939retval = reflectedType.Cache.GetGenericMethodInfo(methodHandle); 1941retval = reflectedType.Cache.GetMethod(declaredType, methodHandle); 1997FieldInfo retVal = reflectedType.Cache.GetField(fieldHandle); 2007reflectedType.Cache.GetPropertyList(MemberListType.All, null); 2514return Cache.GetDefaultMemberName(); 2531RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2556RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2577RuntimePropertyInfo[] cache = Cache.GetPropertyList(listType, name); 2600RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2622RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2646RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 2696RuntimeType[] candidates = Cache.GetInterfaceList(MemberListType.All, null); 2943RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2970RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 3022RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3051RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3184RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3200RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3216RuntimePropertyInfo[] cache = runtimeType.Cache.GetPropertyList(MemberListType.CaseSensitive, property.Name); 3232RuntimeFieldInfo[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name); 3248RuntimeEventInfo[] cache = runtimeType.Cache.GetEventList(MemberListType.CaseSensitive, eventInfo.Name); 3264RuntimeType[] cache = runtimeType.Cache.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name); 3367public override string? FullName => Cache.GetFullName(); 3369public override string? AssemblyQualifiedName => Cache.GetAssemblyQualifiedName(); 3375string? ns = Cache.GetNamespace(); 3563return Cache.GetGenericTypeDefinition(); 3587internal object[] GetEmptyArray() => Cache.GetEmptyArray(); 3821Type[] parameters = Cache.FunctionPointerReturnAndParameterTypes; 3839return Cache.FunctionPointerReturnAndParameterTypes[0]; 3845public override string ToString() => Cache.GetToString(); 3849public override string Name => Cache.GetName(); 3851public override Type? DeclaringType => Cache.GetEnclosingType(); 4076internal 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;