3 references to MaxCapacity
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (2)
161
if ((cacheBuilder?.TotalCount ?? utf8PropertyCache.Length) < PropertyRefCacheBuilder.
MaxCapacity
)
183
Debug.Assert(newCache.Length <= PropertyRefCacheBuilder.
MaxCapacity
);
System\Text\Json\Serialization\Metadata\PropertyRefCacheBuilder.cs (1)
28
Debug.Assert(TotalCount <
MaxCapacity
, "Should have been checked by the caller.");