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

Adds range of elements (in-place) to this container.
public IAdd ( ushort begin, ushort end ) : Container
begin ushort Start of range (inclusive)
end ushort End of range (exclusive)
Результат Container
Пример #1
0
        /// <summary>
        /// Create a container initialized with a range of consecutive values.
        /// </summary>
        /// <param name="start">First index</param>
        /// <param name="last">Last index</param>
        /// <returns>A new container initialized with the specified values</returns>
        /// <remarks>In the original lemire version, there is some optimization here
        /// to choose between an ArrayContainer and a RunContainer based on serialized size.
        /// For now, this has been stripped out and always uses an ArrayContainer.</remarks>
        public static Container RangeOfOnes(ushort start, ushort last)
        {
            //TODO: Add in logic for RunContainers
            Container answer = new ArrayContainer();

            answer = answer.IAdd(start, last);
            return(answer);
        }