Beispiel #1
0
        public int CompareTo(MatrixRowKey other)
        {
            if (other == null)
            {
                return(1);
            }

            for (int i = 0; i < this.Count; i++)
            {
                var result = ((IComparable)this[i]).CompareTo(other[i]);
                if (result != 0)
                {
                    return(result);
                }
            }

            return(0);
        }
Beispiel #2
0
 internal MatrixRow(MatrixRowKey key, IEnumerable <TItem> aggregatedItems, PropertyDescriptorCollection propertyDescriptors)
 {
     _aggregatedItems     = aggregatedItems;
     _propertyDescriptors = propertyDescriptors;
     Key = key;
 }