10 writes to _count
PresentationFramework (10)
MS\Internal\Data\CompositeCollectionView.cs (10)
74
_count
= CountDeep(_collection.Count);
430
++
_count
;
436
--
_count
;
447
_count
+= cc.ViewCount;
454
_count
-= cc.ViewCount;
514
_count
-= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount;
515
_count
+= newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount;
628
_count
= 0; // OnCollectionChanged(arg) below will raise PropChange for Count
679
_count
= -1;
1063
_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);
429
if (
_count
>= 0)
435
if (
_count
>= 0)
446
if (
_count
>= 0)
453
if (
_count
>= 0)
512
if (
_count
>= 0)
943
if (
_count
>= 0 && flatIndex >=
_count
)
1061
bool countChanged = (
_count
!= count &&
_count
>= 0);
1082
Invariant.Assert(
_count
< 0 || proposed <=
_count
);
1371
if (
_count
!= 0) // unknown or HasItems