示例#1
0
 /// <summary>
 /// Determines if this bag is a subset of another ba11 items in this bag.
 /// </summary>
 /// <param name="otherBag">Bag to compare to.</param>
 /// <returns>True if this is a subset of <paramref name="otherBag"/>.</returns>
 /// <exception cref="InvalidOperationException">This bag and <paramref name="otherBag"/> don't use the same method for comparing items.</exception>
 public bool IsSubsetOf(Bag <T> otherBag)
 {
     return(otherBag.IsSupersetOf(this));
 }