Example #1
0
 /// <summary>
 /// Does the list mapping contain the key value pair?
 /// </summary>
 /// <param name="key">Key</param>
 /// <param name="value">Value</param>
 /// <returns>True if it exists, false otherwise</returns>
 public bool Contains(T1 key, T2 value)
 {
     lock (LockObject)
     {
         return(Items.TryGetValue(key, out var TempValues) && TempValues.Contains(value));
     }
 }
Example #2
0
 /// <summary>
 /// Does the list mapping contain the key value pairs?
 /// </summary>
 /// <param name="key">Key value</param>
 /// <param name="values">Value</param>
 /// <returns>True if it exists, false otherwise</returns>
 public bool Contains(T1 key, IEnumerable <T2> values)
 {
     lock (LockObject)
     {
         return(Items.TryGetValue(key, out var TempValues) && values.All(x => TempValues.Contains(x)));
     }
 }