System.Xml.Schema.BitSet.Set C# (CSharp) Method

Set() public method

public Set ( int index ) : void
index int
return void
        public void Set(int index) {
            int nBitSlot = Subscript(index);
            EnsureLength(nBitSlot + 1);
            bits[nBitSlot] |= (uint)1 << (index & bitSlotMask);
        }

Usage Example

Exemplo n.º 1
0
        internal override BitSet Lastpos(int positions)
        {
            if (last == null)
            {
                last = new BitSet(positions);
                last.Set(pos);
            }

            return(last);
        }
All Usage Examples Of System.Xml.Schema.BitSet::Set