public void SetFlag(ModelState.Flag f, bool b) { if (b) { this.flags |= (int)f; return; } this.flags &= (int)(~f); }
public bool HasFlag(ModelState.Flag f) { return((this.flags & (int)f) == (int)f); }
public void SetFlag(ModelState.Flag f, bool b) { if (b) { this.flags |= (int)f; return; } this.flags &= (int)(~f); }
public bool HasFlag(ModelState.Flag f) { return((this.flags & (int)f) == (int)f); }