public static void EnqueAddSet <TValue>(this ConcurrentArrayList <TValue> self, IEnumerable <TValue> collection) { foreach (var item in collection) { self.EnqueAdd(item); } }
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(); }