25 references to Count
System.Activities (25)
System\Activities\ActivityInstance.cs (8)
376
return (this.childList != null && this.childList.
Count
> 0);
1443
if (this.bookmarks == null || this.bookmarks.
Count
== 0)
1465
if (this.activityReferences == null || this.activityReferences.
Count
== 0)
1476
Fx.Assert(value != null && value.
Count
> 0, "We shouldn't emit the default value or empty lists");
1485
return this.activityReferences != null && this.activityReferences.
Count
> 0;
1522
if (this.bookmarks.
Count
> 0)
1579
Fx.Assert(this.
Count
> 0, "Should only call this when we have items");
1598
Fx.Assert(this.
Count
> 0, "Should only call this when we have items");
System\Activities\Runtime\ActivityInstanceMap.cs (9)
113
for (int j = 0; j < instanceList.
Count
; j++)
185
for (int j = 0; j < instanceList.
Count
; j++)
321
for (int j = 0; j < list.
Count
; j++)
410
for (int i = 0; i < instanceList.
Count
; i++)
460
for (int i = 0; i < participant.InstanceList.
Count
; i++)
523
for (int j = 0; j < participant.InstanceList.
Count
; j++)
641
if (mappedInstances.
Count
== 1)
681
Fx.Assert(this.
Count
>= 1, "instance list should never be empty when we call Add");
706
Fx.Assert(this.
Count
>= 1, "instance list should never be empty on load");
System\Activities\Runtime\BookmarkManager.cs (1)
320
for (int i = 0; i < bookmark.ExclusiveHandles.
Count
; i++)
System\Activities\Runtime\BookmarkScopeManager.cs (1)
553
for (int i = 0; i < bookmark.ExclusiveHandles.
Count
; i++)
System\Activities\Runtime\ExecutionPropertyManager.cs (4)
258
if (children != null && children.
Count
> 0)
275
for (int i = 0; i < children.
Count
; i++)
288
if (tempChildren != null && tempChildren.
Count
> 0)
518
Fx.Assert(completedInstance == null || completedInstance.GetRawChildren() == null || completedInstance.GetRawChildren().
Count
== 0, "There must not be any children at this point otherwise our exclusive handle count would be incorrect.");
System\Activities\Statements\TimerTable.cs (2)
174
for (index = 0; index < this.pendingRemoveBookmark.
Count
; index++)
183
for (index = 0; index < this.pendingRemoveBookmark.
Count
; index++)