10 writes to _count
PresentationFramework (10)
MS\Internal\Data\CompositeCollectionView.cs (10)
82
_count
= CountDeep(_collection.Count);
439
++
_count
;
445
--
_count
;
456
_count
+= cc.ViewCount;
463
_count
-= cc.ViewCount;
523
_count
-= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount;
524
_count
+= newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount;
638
_count
= 0; // OnCollectionChanged(arg) below will raise PropChange for Count
689
_count
= -1;
1077
_count
= count;
16 references to _count
PresentationFramework (16)
MS\Internal\Data\CompositeCollectionView.cs (16)
80
if (
_count
== -1)
85
return
_count
;
106
if (
_count
< 0) // if count cache is invalid
118
return (
_count
== 0);
438
if (
_count
>= 0)
444
if (
_count
>= 0)
455
if (
_count
>= 0)
462
if (
_count
>= 0)
521
if (
_count
>= 0)
957
if (
_count
>= 0 && flatIndex >=
_count
)
1075
bool countChanged = (
_count
!= count &&
_count
>= 0);
1096
Invariant.Assert(
_count
< 0 || proposed <=
_count
);
1385
if (
_count
!= 0) // unknown or HasItems