Beispiel #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);
        }
Beispiel #2
0
 public IndirectCollection(IColumn <T> values, ArraySlice <int> indices)
 {
     _values  = values;
     _indices = indices;
 }
 public DictionaryEnumerator(DictionaryColumn <TKey, TValue> column, ArraySlice <int> indices)
 {
     _column  = column;
     _indices = indices;
     _index   = -1;
 }
Beispiel #4
0
 public IndirectEnumerator(IColumn <T> values, ArraySlice <int> indices)
 {
     _values  = values;
     _indices = indices;
     _index   = -1;
 }