Example #1
0
 public static bool HasAny(this Progress.Updates flags, Progress.Updates f)
 {
     if (f == Progress.Updates.NothingChanged && flags == Progress.Updates.NothingChanged)
     {
         return(true);
     }
     return((f & flags) != 0);
 }
Example #2
0
 public static bool HasAll(this Progress.Updates flags, Progress.Updates all) => (flags & all) == all;