public bool ContainsAll(FlagSet <E> c) { foreach (var flag in c) { if (!enumSet.Contains(flag)) { return(false); } } return(true); }
public static FlagSet <E> CopyOf <E>(FlagSet <E> s) { return(new FlagSet <E>(s.GetType().GetGenericArguments()[0], new HashSet <E>(s.AsSet()))); }
public bool MissingAll(FlagSet <E> c) { return(MissingAll(new List <E>(c.enumSet))); }
public FlagSet <E> RetainsAll(FlagSet <E> other) { return(RetainAll(new List <E>(other.enumSet))); }
public FlagSet <E> RemoveAll(FlagSet <E> other) { return(RemoveAll(new List <E>(other.enumSet))); }
public FlagSet <E> AddAll(FlagSet <E> other) { return(AddAll(new List <E>(other.enumSet))); }