7 references to Count
System.ServiceModel.Primitives (7)
Internals\System\Runtime\IOThreadScheduler.cs (7)
142bool wasIdle = Bits.Count(slot) == 0; 146Contract.Assert(Bits.Count(slot) != 0, "IOTS went idle when it shouldn't have."); 150if (Bits.Count(slot) == -1) 182Contract.Assert(Bits.Count(slot) != -1, "CompletionCallback called on idle IOTS!"); 184bool wasEmpty = Bits.Count(slot) == 0; 208if (Bits.Count(slot) > 0) 265Contract.Assert(Bits.Count(_headTail) == -1, "IOTS finalized while not idle.");