4 writes to _capacity
System.IdentityModel (4)
System\IdentityModel\BoundedCache.cs (4)
60_capacity = capacity; 92_capacity = value; 153_capacity = int.MaxValue; 157_capacity = _capacity + size;
7 references to _capacity
System.IdentityModel (7)
System\IdentityModel\BoundedCache.cs (7)
84return _capacity; 121if (_capacity == int.MaxValue) 126if (_items.Count >= _capacity) 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new LimitExceededException(SR.GetString(SR.ID0021, _capacity))); 151if (int.MaxValue - size <= _capacity) 157_capacity = _capacity + size; 160return _capacity;