10 writes to _count
PresentationFramework (10)
MS\Internal\Data\CompositeCollectionView.cs (10)
73
_count
= CountDeep(_collection.Count);
429
++
_count
;
435
--
_count
;
446
_count
+= cc.ViewCount;
453
_count
-= cc.ViewCount;
513
_count
-= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount;
514
_count
+= newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount;
627
_count
= 0; // OnCollectionChanged(arg) below will raise PropChange for Count
678
_count
= -1;
1062
_count
= count;
16 references to _count
PresentationFramework (16)
MS\Internal\Data\CompositeCollectionView.cs (16)
71
if (
_count
== -1)
76
return
_count
;
97
if (
_count
< 0) // if count cache is invalid
109
return (
_count
== 0);
428
if (
_count
>= 0)
434
if (
_count
>= 0)
445
if (
_count
>= 0)
452
if (
_count
>= 0)
511
if (
_count
>= 0)
942
if (
_count
>= 0 && flatIndex >=
_count
)
1060
bool countChanged = (
_count
!= count &&
_count
>= 0);
1081
Invariant.Assert(
_count
< 0 || proposed <=
_count
);
1370
if (
_count
!= 0) // unknown or HasItems