Terraria.BitsByte.this C# (CSharp) Method

this() public method

public this ( int key ) : bool
key int
return bool
        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);
            }
        }