public bool this[int key] { get { return ((int)this.value & 1 << key) != 0; } set { if (value) this.value |= (byte)(1 << key); else this.value &= (byte)~(1 << key); } }