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