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)
1906
retval = reflectedType.
Cache
.GetConstructor(declaredType, methodHandle);
1912
retval = reflectedType.
Cache
.GetGenericMethodInfo(methodHandle);
1914
retval = reflectedType.
Cache
.GetMethod(declaredType, methodHandle);
1970
FieldInfo retVal = reflectedType.
Cache
.GetField(fieldHandle);
1980
reflectedType.
Cache
.GetPropertyList(MemberListType.All, null);
2487
return
Cache
.GetDefaultMemberName();
2504
RuntimeMethodInfo[] cache =
Cache
.GetMethodList(listType, name);
2529
RuntimeConstructorInfo[] cache =
Cache
.GetConstructorList(listType, name);
2550
RuntimePropertyInfo[] cache =
Cache
.GetPropertyList(listType, name);
2573
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2595
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2619
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
2669
RuntimeType[] candidates =
Cache
.GetInterfaceList(MemberListType.All, null);
2916
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2943
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2995
RuntimeType[] cache =
Cache
.GetInterfaceList(listType, name);
3024
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
3157
RuntimeMethodInfo[] cache = runtimeType.
Cache
.GetMethodList(MemberListType.CaseSensitive, method.Name);
3173
RuntimeConstructorInfo[] cache = runtimeType.
Cache
.GetConstructorList(MemberListType.CaseSensitive, constructor.Name);
3189
RuntimePropertyInfo[] cache = runtimeType.
Cache
.GetPropertyList(MemberListType.CaseSensitive, property.Name);
3205
RuntimeFieldInfo[] cache = runtimeType.
Cache
.GetFieldList(MemberListType.CaseSensitive, field.Name);
3221
RuntimeEventInfo[] cache = runtimeType.
Cache
.GetEventList(MemberListType.CaseSensitive, eventInfo.Name);
3237
RuntimeType[] cache = runtimeType.
Cache
.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name);
3358
string? ns =
Cache
.GetNameSpace();
3546
return
Cache
.GetGenericTypeDefinition();
3570
internal object[] GetEmptyArray() =>
Cache
.GetEmptyArray();
3806
Type[] parameters =
Cache
.FunctionPointerReturnAndParameterTypes;
3824
return
Cache
.FunctionPointerReturnAndParameterTypes[0];
3840
private string? GetCachedName(TypeNameKind kind) =>
Cache
.GetName(kind);
3842
public override Type? DeclaringType =>
Cache
.GetEnclosingType();
4067
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;