public int Ref() { int i = 1; YieldingQueue.ApplyWaitMethod(ref i); return(i); }
public void DecrementRef() { int count = 100; for (int i = 0; i < 100; i++) { YieldingQueue.ApplyWaitMethod(ref count); } Assert.AreEqual(0, count); }
public int NoRef() { int i = 1; return(YieldingQueue.ApplyWaitMethod2(i)); }