Beispiel #1
0
        public static FieldSpecifier operator |(FieldSpecifier left, FieldSpecifier right)
        {
            FieldSpecifier result = 0;

            result.Add(left);
            result.Add(right);
            return(result);
        }
Beispiel #2
0
 public void Remove(FieldSpecifier am)
 {
     Flags &= (byte)~am.Flags;
 }
Beispiel #3
0
 private bool Intersects(FieldSpecifier am)
 {
     return((Flags & am.Flags) > 0);
 }
Beispiel #4
0
 public void Add(FieldSpecifier am)
 {
     Flags |= am.Flags;
 }
Beispiel #5
0
 public bool IsSet(FieldSpecifier am)
 {
     return((Flags & am.Flags) > 0);
 }