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