Пример #1
0
 internal ListSegmentEnumerator(ListSegment <T> arraySlice)
 {
     _array   = arraySlice._list;
     _start   = arraySlice._offset;
     _end     = _start + arraySlice._count;
     _current = _start - 1;
 }
Пример #2
0
 /// <summary>
 /// Determines whether the specified <see cref="ListSegment{T}"/> structure is equal to the current instance.
 /// </summary>
 /// <param name="obj">The structure to compare with the current instance.</param>
 /// <returns>
 /// `true` if the specified <see cref="ListSegment{T}"/> structure is equal to the current instance; otherwise, `false`.
 /// </returns>
 public bool Equals(ListSegment <T> obj)
 {
     return(obj._list == _list && obj._offset == _offset && obj._count == _count);
 }