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