Пример #1
0
 public bool ContainsAll(FlagSet <E> c)
 {
     foreach (var flag in c)
     {
         if (!enumSet.Contains(flag))
         {
             return(false);
         }
     }
     return(true);
 }
Пример #2
0
 public static FlagSet <E> CopyOf <E>(FlagSet <E> s)
 {
     return(new FlagSet <E>(s.GetType().GetGenericArguments()[0], new HashSet <E>(s.AsSet())));
 }
Пример #3
0
 public bool MissingAll(FlagSet <E> c)
 {
     return(MissingAll(new List <E>(c.enumSet)));
 }
Пример #4
0
 public FlagSet <E> RetainsAll(FlagSet <E> other)
 {
     return(RetainAll(new List <E>(other.enumSet)));
 }
Пример #5
0
 public FlagSet <E> RemoveAll(FlagSet <E> other)
 {
     return(RemoveAll(new List <E>(other.enumSet)));
 }
Пример #6
0
 public FlagSet <E> AddAll(FlagSet <E> other)
 {
     return(AddAll(new List <E>(other.enumSet)));
 }