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)
1934
retval = reflectedType.
Cache
.GetConstructor(declaredType, methodHandle);
1940
retval = reflectedType.
Cache
.GetGenericMethodInfo(methodHandle);
1942
retval = reflectedType.
Cache
.GetMethod(declaredType, methodHandle);
1998
FieldInfo retVal = reflectedType.
Cache
.GetField(fieldHandle);
2008
reflectedType.
Cache
.GetPropertyList(MemberListType.All, null);
2515
return
Cache
.GetDefaultMemberName();
2532
RuntimeMethodInfo[] cache =
Cache
.GetMethodList(listType, name);
2557
RuntimeConstructorInfo[] cache =
Cache
.GetConstructorList(listType, name);
2578
RuntimePropertyInfo[] cache =
Cache
.GetPropertyList(listType, name);
2601
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2623
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
2647
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
2697
RuntimeType[] candidates =
Cache
.GetInterfaceList(MemberListType.All, null);
2944
RuntimeEventInfo[] cache =
Cache
.GetEventList(listType, name);
2971
RuntimeFieldInfo[] cache =
Cache
.GetFieldList(listType, name);
3023
RuntimeType[] cache =
Cache
.GetInterfaceList(listType, name);
3052
RuntimeType[] cache =
Cache
.GetNestedTypeList(listType, name);
3185
RuntimeMethodInfo[] cache = runtimeType.
Cache
.GetMethodList(MemberListType.CaseSensitive, method.Name);
3201
RuntimeConstructorInfo[] cache = runtimeType.
Cache
.GetConstructorList(MemberListType.CaseSensitive, constructor.Name);
3217
RuntimePropertyInfo[] cache = runtimeType.
Cache
.GetPropertyList(MemberListType.CaseSensitive, property.Name);
3233
RuntimeFieldInfo[] cache = runtimeType.
Cache
.GetFieldList(MemberListType.CaseSensitive, field.Name);
3249
RuntimeEventInfo[] cache = runtimeType.
Cache
.GetEventList(MemberListType.CaseSensitive, eventInfo.Name);
3265
RuntimeType[] cache = runtimeType.
Cache
.GetNestedTypeList(MemberListType.CaseSensitive, nestedType.Name);
3368
public override string? FullName =>
Cache
.GetFullName();
3370
public override string? AssemblyQualifiedName =>
Cache
.GetAssemblyQualifiedName();
3376
string? ns =
Cache
.GetNamespace();
3565
return
Cache
.GetGenericTypeDefinition();
3589
internal object[] GetEmptyArray() =>
Cache
.GetEmptyArray();
3843
Type[] parameters =
Cache
.FunctionPointerReturnAndParameterTypes;
3861
return
Cache
.FunctionPointerReturnAndParameterTypes[0];
3867
public override string ToString() =>
Cache
.GetToString();
3871
public override string Name =>
Cache
.GetName();
3873
public override Type? DeclaringType =>
Cache
.GetEnclosingType();
4098
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;