37 references to Cache
System.Private.CoreLib (37)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
174
TypeCode typeCode =
Cache
.TypeCode;
180
Cache
.TypeCode = typeCode;
src\System\RuntimeType.CoreCLR.cs (31)
1925
retval = reflectedType.
Cache
.GetConstructor(declaredType, methodHandle);
1931
retval = reflectedType.
Cache
.GetGenericMethodInfo(methodHandle);
1933
retval = reflectedType.
Cache
.GetMethod(declaredType, methodHandle);
1989
FieldInfo retVal = reflectedType.
Cache
.GetField(fieldHandle);
1999
reflectedType.
Cache
.GetPropertyList(MemberListType.All, null);
2506
return
Cache
.GetDefaultMemberName();
2523
RuntimeMethodInfo[] cache =
Cache
.GetMethodList(listType, name);
2548
RuntimeConstructorInfo[] cache =
Cache
.GetConstructorList(listType, name);
2569
RuntimePropertyInfo[] cache =
Cache
.GetPropertyList(listType, name);
2592
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2614
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2638
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
2688
RuntimeType[] candidates =
Cache
.GetInterfaceList(MemberListType.All, null);
2919
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2946
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2998
RuntimeType[] cache =
Cache
.GetInterfaceList(listType, name);
3027
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
3160
RuntimeMethodInfo[] cache = runtimeType.
Cache
.GetMethodList(MemberListType.CaseSensitive, method.Name);
3176
RuntimeConstructorInfo[] cache = runtimeType.
Cache
.GetConstructorList(MemberListType.CaseSensitive, constructor.Name);
3192
RuntimePropertyInfo[] cache = runtimeType.
Cache
.GetPropertyList(MemberListType.CaseSensitive, property.Name);
3208
RuntimeFieldInfo[] cache = runtimeType.
Cache
.GetFieldList(MemberListType.CaseSensitive, field.Name);
3224
RuntimeEventInfo[] cache = runtimeType.
Cache
.GetEventList(MemberListType.CaseSensitive, eventInfo.Name);
3240
RuntimeType[] cache = runtimeType.
Cache
.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name);
3361
string? ns =
Cache
.GetNameSpace();
3548
return
Cache
.GetGenericTypeDefinition();
3572
internal object[] GetEmptyArray() =>
Cache
.GetEmptyArray();
3808
Type[] parameters =
Cache
.FunctionPointerReturnAndParameterTypes;
3826
return
Cache
.FunctionPointerReturnAndParameterTypes[0];
3842
private string? GetCachedName(TypeNameKind kind) =>
Cache
.GetName(kind);
3844
public override Type? DeclaringType =>
Cache
.GetEnclosingType();
4062
internal void InvalidateCachedNestedType() =>
Cache
.InvalidateCachedNestedType();
src\System\RuntimeType.GenericCache.cs (4)
53
ref IGenericCacheEntry? genericCache = ref type.
Cache
.GenericCache;
76
ref IGenericCacheEntry? genericCache = ref type.
Cache
.GenericCache;
96
ref IGenericCacheEntry? genericCache = ref type.
Cache
.GenericCache;
135
ref IGenericCacheEntry? genericCache = ref type.
Cache
.GenericCache;