Пример #1
0
        public bool Equals(ArraySlice <T> other)
        {
            if (this.Count != other.Count)
            {
                return(false);
            }

            for (int i = 0; i < Count; ++i)
            {
                if (!Array[Index + i].Equals(other.Array[other.Index + i]))
                {
                    return(false);
                }
            }

            return(true);
        }
Пример #2
0
 public IndirectCollection(IColumn <T> values, ArraySlice <int> indices)
 {
     _values  = values;
     _indices = indices;
 }
Пример #3
0
 public DictionaryEnumerator(DictionaryColumn <TKey, TValue> column, ArraySlice <int> indices)
 {
     _column  = column;
     _indices = indices;
     _index   = -1;
 }
Пример #4
0
 public IndirectEnumerator(IColumn <T> values, ArraySlice <int> indices)
 {
     _values  = values;
     _indices = indices;
     _index   = -1;
 }