10 writes to _count
PresentationFramework (10)
MS\Internal\Data\CompositeCollectionView.cs (10)
74
_count
= CountDeep(_collection.Count);
431
++
_count
;
437
--
_count
;
448
_count
+= cc.ViewCount;
455
_count
-= cc.ViewCount;
515
_count
-= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount;
516
_count
+= newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount;
630
_count
= 0; // OnCollectionChanged(arg) below will raise PropChange for Count
681
_count
= -1;
1069
_count
= count;
16 references to _count
PresentationFramework (16)
MS\Internal\Data\CompositeCollectionView.cs (16)
72
if (
_count
== -1)
77
return
_count
;
98
if (
_count
< 0) // if count cache is invalid
110
return (
_count
== 0);
430
if (
_count
>= 0)
436
if (
_count
>= 0)
447
if (
_count
>= 0)
454
if (
_count
>= 0)
513
if (
_count
>= 0)
949
if (
_count
>= 0 && flatIndex >=
_count
)
1067
bool countChanged = (
_count
!= count &&
_count
>= 0);
1088
Invariant.Assert(
_count
< 0 || proposed <=
_count
);
1377
if (
_count
!= 0) // unknown or HasItems