BitsetsNET.RLEBitset.Get C# (CSharp) Method

Get() public method

Gets the boolean value at the given index.
public Get ( int index ) : bool
index int an index
return bool
        public bool Get(int index)
        {
            bool rtnVal = false;
            foreach (Run r in this.runArray)
            {
                if (index >= r.StartIndex && index <= r.EndIndex)
                {
                    rtnVal = true;
                    break;
                }
            }
            return rtnVal;
        }