예제 #1
0
        /// <summary>
        /// Returns <c>true</c> if the set contains all the elements in the specified collection.
        /// </summary>
        /// <param name="c">A collection of objects.</param>
        /// <returns><c>true</c> if the set contains all the elements in the specified collection, <c>false</c> otherwise.</returns>
        public sealed override bool ContainsAll(ICollection c)
        {
            Set temp;

            lock (c.SyncRoot)
            {
                temp = new HybridSet(c);
            }
            lock (_syncRoot)
            {
                return(_basisSet.ContainsAll(temp));
            }
        }
예제 #2
0
 /// <summary>
 /// Returns <c>true</c> if the set contains all the elements in the specified collection.
 /// </summary>
 /// <param name="c">A collection of objects.</param>
 /// <returns><c>true</c> if the set contains all the elements in the specified collection, <c>false</c> otherwise.</returns>
 public sealed override bool ContainsAll(ICollection c)
 {
     return(_basisSet.ContainsAll(c));
 }