Exemple #1
0
 public static bool IsOfKind(this Region subject, RegionKind mask)
 {
     if (subject == null)
         return false;
     else
         return subject.Kind.IsIn(mask);
 }
Exemple #2
0
 public static bool IsIn(this RegionKind subject, RegionKind mask)
 {
     return (subject & mask) == subject;
 }
Exemple #3
0
 public ProtectedRegionSpan(int from, int to, RegionKind type)
 {
     From = from;
     To   = to;
     Type = type;
 }