public int CompareTo(ISortableAttribute other)
        {
            var otherSortableNumericAttribute = (SortableNumericAttribute) other;

            var result = NumericValue.CompareTo(otherSortableNumericAttribute.NumericValue);
            if(result == 0)
                result = String.Compare(Value, otherSortableNumericAttribute.Value, StringComparison.Ordinal);
            return result;
        }
示例#2
0
        public int CompareTo(ISortableAttribute other)
        {
            var otherSortableNumericAttribute = (SortableNumericAttribute)other;

            var result = NumericValue.CompareTo(otherSortableNumericAttribute.NumericValue);

            if (result == 0)
            {
                result = String.Compare(Value, otherSortableNumericAttribute.Value, StringComparison.Ordinal);
            }
            return(result);
        }
 public int CompareTo(ISortableAttribute other)
 {
     return String.Compare(Value, ((SortableStringAttribute) other).Value, StringComparison.Ordinal);
 }
示例#4
0
 public int CompareTo(ISortableAttribute other)
 {
     return(String.Compare(Value, ((SortableStringAttribute)other).Value, StringComparison.Ordinal));
 }