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