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