BitsetsNET.RLEBitset.Get C# (CSharp) 메소드

Get() 공개 메소드

Gets the boolean value at the given index.
public Get ( int index ) : bool
index int an index
리턴 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;
        }