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);
2900
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2927
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2979
RuntimeType[] cache =
Cache
.GetInterfaceList(listType, name);
3008
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
3141
RuntimeMethodInfo[] cache = runtimeType.
Cache
.GetMethodList(MemberListType.CaseSensitive, method.Name);
3157
RuntimeConstructorInfo[] cache = runtimeType.
Cache
.GetConstructorList(MemberListType.CaseSensitive, constructor.Name);
3173
RuntimePropertyInfo[] cache = runtimeType.
Cache
.GetPropertyList(MemberListType.CaseSensitive, property.Name);
3189
RuntimeFieldInfo[] cache = runtimeType.
Cache
.GetFieldList(MemberListType.CaseSensitive, field.Name);
3205
RuntimeEventInfo[] cache = runtimeType.
Cache
.GetEventList(MemberListType.CaseSensitive, eventInfo.Name);
3221
RuntimeType[] cache = runtimeType.
Cache
.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name);
3342
string? ns =
Cache
.GetNameSpace();
3530
return
Cache
.GetGenericTypeDefinition();
3554
internal object[] GetEmptyArray() =>
Cache
.GetEmptyArray();
3790
Type[] parameters =
Cache
.FunctionPointerReturnAndParameterTypes;
3808
return
Cache
.FunctionPointerReturnAndParameterTypes[0];
3824
private string? GetCachedName(TypeNameKind kind) =>
Cache
.GetName(kind);
3826
public override Type? DeclaringType =>
Cache
.GetEnclosingType();
4044
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;