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)
84
return
_capacity
;
121
if (
_capacity
== int.MaxValue)
126
if (_items.Count >=
_capacity
)
128
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new LimitExceededException(SR.GetString(SR.ID0021,
_capacity
)));
151
if (int.MaxValue - size <=
_capacity
)
157
_capacity =
_capacity
+ size;
160
return
_capacity
;