BitsetsNET.RLEBitset.GetEnumerator C# (CSharp) Метод

GetEnumerator() публичный Метод

Get an enumerator of the set indices of this bitset. Meaning, it returns the indicies where the value is set to "true" or "1".
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator
        public IEnumerator GetEnumerator()
        {
            foreach (Run r in this.runArray)
            {
                for (int i = r.StartIndex; i < r.EndIndex +1; i++)
                {
                    yield return i;
                }
            }
        }