public static ICollection <TKey> get_Keys <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary) #pragma warning restore IDE1006 // Naming Styles #pragma warning restore SA1300 // Element should begin with upper-case letter #pragma warning restore CA1707 // Identifiers should not contain underscores { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.Keys); }
#pragma warning disable CA1707 // Identifiers should not contain underscores #pragma warning disable SA1300 // Element should begin with upper-case letter #pragma warning disable IDE1006 // Naming Styles public static bool get_IsEmpty <T>(ConcurrentQueue <T> concurrentQueue) #pragma warning restore IDE1006 // Naming Styles #pragma warning restore SA1300 // Element should begin with upper-case letter #pragma warning restore CA1707 // Identifiers should not contain underscores { ConcurrentCollectionHelper.Interleave(); return(concurrentQueue.IsEmpty); }
#pragma warning disable CA1707 // Identifiers should not contain underscores #pragma warning disable SA1300 // Element should begin with upper-case letter #pragma warning disable IDE1006 // Naming Styles public static int get_Count <T>(ConcurrentStack <T> concurrentStack) #pragma warning restore IDE1006 // Naming Styles #pragma warning restore SA1300 // Element should begin with upper-case letter #pragma warning restore CA1707 // Identifiers should not contain underscores { ConcurrentCollectionHelper.Interleave(); return(concurrentStack.Count); }
#pragma warning disable CA1707 // Identifiers should not contain underscores #pragma warning disable SA1300 // Element should begin with upper-case letter #pragma warning disable IDE1006 // Naming Styles public static void set_Item <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, TValue value) #pragma warning restore IDE1006 // Naming Styles #pragma warning restore SA1300 // Element should begin with upper-case letter #pragma warning restore CA1707 // Identifiers should not contain underscores { ConcurrentCollectionHelper.Interleave(); concurrentDictionary[key] = value; }
public static void Clear <T>(ConcurrentBag <T> concurrentBag) { ConcurrentCollectionHelper.Interleave(); concurrentBag.Clear(); }
public static IEnumerator <T> GetEnumerator <T>(ConcurrentQueue <T> concurrentQueue) { ConcurrentCollectionHelper.Interleave(); return(concurrentQueue.GetEnumerator()); }
public static void CopyTo <T>(ConcurrentQueue <T> concurrentQueue, T[] array, int index) { ConcurrentCollectionHelper.Interleave(); concurrentQueue.CopyTo(array, index); }
public static bool TryUpdate <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, TValue newValue, TValue comparisonValue) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.TryUpdate(key, newValue, comparisonValue)); }
public static bool TryRemove <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, out TValue value) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.TryRemove(key, out value)); }
public static void Clear <T>(ConcurrentStack <T> concurrentStack) { ConcurrentCollectionHelper.Interleave(); concurrentStack.Clear(); }
public static int TryPopRange <T>(ConcurrentStack <T> concurrenStack, T[] items) { ConcurrentCollectionHelper.Interleave(); return(concurrenStack.TryPopRange(items)); }
public static int TryPopRange <T>(ConcurrentStack <T> concurrenStack, T[] items, int startIndex, int count) { ConcurrentCollectionHelper.Interleave(); return(concurrenStack.TryPopRange(items, startIndex, count)); }
public static bool TryPop <T>(ConcurrentStack <T> concurrentStack, out T result) { ConcurrentCollectionHelper.Interleave(); return(concurrentStack.TryPop(out result)); }
public static T[] ToArray <T>(ConcurrentStack <T> concurrentStack) { ConcurrentCollectionHelper.Interleave(); return(concurrentStack.ToArray()); }
public static void PushRange <T>(ConcurrentStack <T> concurrentStack, T[] items, int startIndex, int count) { ConcurrentCollectionHelper.Interleave(); concurrentStack.PushRange(items, startIndex, count); }
public static TValue GetOrAdd <TKey, TArg, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, Func <TKey, TArg, TValue> valueFactory, TArg factoryArgument) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.GetOrAdd(key, valueFactory, factoryArgument)); }
public static KeyValuePair <TKey, TValue>[] ToArray <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.ToArray()); }
public static void Push <T>(ConcurrentStack <T> concurrentStack, T item) { ConcurrentCollectionHelper.Interleave(); concurrentStack.Push(item); }
public static bool TryRemove <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, KeyValuePair <TKey, TValue> item) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.TryRemove(item)); }
public static void PushRange <T>(ConcurrentStack <T> concurrentStack, T[] items) { ConcurrentCollectionHelper.Interleave(); concurrentStack.PushRange(items); }
public static TValue AddOrUpdate <TKey, TArg, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, Func <TKey, TArg, TValue> addValueFactory, Func <TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.AddOrUpdate(key, addValueFactory, updateValueFactory, factoryArgument)); }
public static void Clear <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary) { ConcurrentCollectionHelper.Interleave(); concurrentDictionary.Clear(); }
public static bool TryPeek <T>(ConcurrentQueue <T> concurrentQueue, out T result) { ConcurrentCollectionHelper.Interleave(); return(concurrentQueue.TryPeek(out result)); }
public static bool ContainsKey <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.ContainsKey(key)); }
public static void Clear <T>(ConcurrentQueue <T> concurrentQueue) { ConcurrentCollectionHelper.Interleave(); concurrentQueue.Clear(); }
public static IEnumerator <KeyValuePair <TKey, TValue> > GetEnumerator <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.GetEnumerator()); }
public static void Enqueue <T>(ConcurrentQueue <T> concurrentQueue, T item) { ConcurrentCollectionHelper.Interleave(); concurrentQueue.Enqueue(item); }
public static TValue GetOrAdd <TKey, TValue>(ConcurrentDictionary <TKey, TValue> concurrentDictionary, TKey key, TValue value) { ConcurrentCollectionHelper.Interleave(); return(concurrentDictionary.GetOrAdd(key, value)); }
public static T[] ToArray <T>(ConcurrentQueue <T> concurrentQueue) { ConcurrentCollectionHelper.Interleave(); return(concurrentQueue.ToArray()); }
public static void Add <T>(ConcurrentBag <T> concurrentBag, T item) { ConcurrentCollectionHelper.Interleave(); concurrentBag.Add(item); }