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