isSubsetOf


Description:

public bool isSubsetOf (HashSet<T> other)

Returns whether this set is a subset of the other set. A set A is a subset of B if every element of A is also in B. An empty set is a subset of any set.

Example:

    var a = new HashSet<string> (GLib.str_hash, GLib.str_equal);
a.add ("1");
var b = new HashSet<string> (GLib.str_hash, GLib.str_equal);
b.add ("1");
b.add ("2");
assert (a.isSubsetOf (b));
assert (!b.isSubsetOf (a));

Parameters:

other

the other set to check against.

Returns:

true if this set is a subset of the other.