/// <summary> /// Turns the value into a concurrent queue. /// </summary> public void ConcurrentQueue(bool Reset = false) { if (Value == null || Reset) { Value = new ConcurrentQueue <object>(); } else if (!UtilityHost.IsLike(Value.GetType().FullName, "System.Collections.Concurrent.ConcurrentQueue*")) { Value = new ConcurrentQueue <object>(); } }
/// <summary> /// Turns the value into a concurrent list /// </summary> public void ConcurrentList(bool Reset = false) { if (Value == null || Reset) { Value = new BlockingCollection <object>(); } else if (!UtilityHost.IsLike(Value.GetType().FullName, "System.Collections.Concurrent.BlockingCollection*")) { Value = new BlockingCollection <object>(); } }
/// <summary> /// TUrns the value into a concurrent dictionary with case-insensitive string keys /// </summary> public void ConcurrentDictionary(bool Reset = false) { if (Value == null || Reset) { Value = new ConcurrentDictionary <string, object>(StringComparer.InvariantCultureIgnoreCase); } else if (!UtilityHost.IsLike(Value.GetType().FullName, "System.Collections.Concurrent.ConcurrentDictionary*")) { Value = new ConcurrentDictionary <string, object>(StringComparer.InvariantCultureIgnoreCase); } }
/// <summary> /// Turns the value into a concurrent stack /// </summary> public void ConcurrentStack() { if (Value == null) { Value = new ConcurrentStack <object>(); } else if (!UtilityHost.IsLike(Value.GetType().FullName, "System.Collections.Concurrent.ConcurrentStack*")) { Value = new ConcurrentStack <object>(); } }