예제 #1
0
 public static void EnqueAddSet <TValue>(this ConcurrentArrayList <TValue> self, IEnumerable <TValue> collection)
 {
     foreach (var item in collection)
     {
         self.EnqueAdd(item);
     }
 }
예제 #2
0
 public static void Update <TValue>(this ConcurrentArrayList <TValue> self, int index, Func <TValue, TValue> func)
 {
     if (self.TryDo(index, x => func(x)))
     {
         return;
     }
     throw new IndexOutOfRangeException();
 }