10 writes to _count
PresentationFramework (10)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (10)
89
_count
= CountDeep(_collection.Count);
454
++
_count
;
460
--
_count
;
471
_count
+= cc.ViewCount;
478
_count
-= cc.ViewCount;
538
_count
-= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount;
539
_count
+= newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount;
655
_count
= 0; // OnCollectionChanged(arg) below will raise PropChange for Count
706
_count
= -1;
1095
_count
= count;
16 references to _count
PresentationFramework (16)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (16)
87
if (
_count
== -1)
92
return
_count
;
113
if (
_count
< 0) // if count cache is invalid
125
return (
_count
== 0);
453
if (
_count
>= 0)
459
if (
_count
>= 0)
470
if (
_count
>= 0)
477
if (
_count
>= 0)
536
if (
_count
>= 0)
975
if (
_count
>= 0 && flatIndex >=
_count
)
1093
bool countChanged = (
_count
!= count &&
_count
>= 0);
1114
Invariant.Assert(
_count
< 0 || proposed <=
_count
);
1404
if (
_count
!= 0) // unknown or HasItems