예제 #1
0
 /// <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>();
     }
 }
예제 #2
0
 /// <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>();
     }
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
 /// <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>();
     }
 }