10 references to PropertyCache
System.Text.Json (10)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (2)
336List<KeyValuePair<string, JsonPropertyInfo>> properties = jsonTypeInfo.PropertyCache!.List; 386List<KeyValuePair<string, JsonPropertyInfo>> propertyList = jsonTypeInfo.PropertyCache!.List;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
353ArrayPool<FoundProperty>.Shared.Rent(Math.Max(1, state.Current.JsonTypeInfo.PropertyCache!.Count)); 561argumentState.FoundPropertiesAsync = ArrayPool<FoundPropertyAsync>.Shared.Rent(Math.Max(1, state.Current.JsonTypeInfo.PropertyCache!.Count));
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (2)
161if (PropertyCache == null) 167if (PropertyCache!.TryGetValue(JsonHelpers.Utf8GetString(propertyName), out JsonPropertyInfo? info))
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
832bool propCacheInitialized = PropertyCache != null; 845foreach (JsonPropertyInfo pi in PropertyCache!.Values)
System\Text\Json\ThrowHelper.Serialization.cs (2)
277Debug.Assert(parent.PropertyCache != null); 282foreach (KeyValuePair<string, JsonPropertyInfo> kvp in parent.PropertyCache.List)