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) { 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); }
public int CompareTo(ISortableAttribute other) { return(String.Compare(Value, ((SortableStringAttribute)other).Value, StringComparison.Ordinal)); }