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)
1882retval = reflectedType.Cache.GetConstructor(declaredType, methodHandle); 1888retval = reflectedType.Cache.GetGenericMethodInfo(methodHandle); 1890retval = reflectedType.Cache.GetMethod(declaredType, methodHandle); 1946FieldInfo retVal = reflectedType.Cache.GetField(fieldHandle); 1956reflectedType.Cache.GetPropertyList(MemberListType.All, null); 2463return Cache.GetDefaultMemberName(); 2480RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2505RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2526RuntimePropertyInfo[] cache = Cache.GetPropertyList(listType, name); 2549RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2571RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2595RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 2645RuntimeType[] candidates = Cache.GetInterfaceList(MemberListType.All, null); 2892RuntimeEventInfo[] cache = Cache.GetEventList(listType, name); 2919RuntimeFieldInfo[] cache = Cache.GetFieldList(listType, name); 2971RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3000RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3133RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3149RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3165RuntimePropertyInfo[] cache = runtimeType.Cache.GetPropertyList(MemberListType.CaseSensitive, property.Name); 3181RuntimeFieldInfo[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name); 3197RuntimeEventInfo[] cache = runtimeType.Cache.GetEventList(MemberListType.CaseSensitive, eventInfo.Name); 3213RuntimeType[] cache = runtimeType.Cache.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name); 3313public override string? FullName => Cache.GetFullName(); 3315public override string? AssemblyQualifiedName => Cache.GetAssemblyQualifiedName(); 3321string? ns = Cache.GetNamespace(); 3509return Cache.GetGenericTypeDefinition(); 3533internal object[] GetEmptyArray() => Cache.GetEmptyArray(); 3769Type[] parameters = Cache.FunctionPointerReturnAndParameterTypes; 3787return Cache.FunctionPointerReturnAndParameterTypes[0]; 3793public override string ToString() => Cache.GetToString(); 3797public override string Name => Cache.GetName(); 3799public override Type? DeclaringType => Cache.GetEnclosingType(); 4024internal 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;