Пример #1
0
 public int CompareTo(object obj)
 {
     return(EditDistance.CompareTo(((Word)obj).EditDistance));
 }
Пример #2
0
        /// <summary>
        ///     Sorts a collection of words by EditDistance
        /// </summary>
        /// <remarks>
        ///     The compare sorts in desc order, largest EditDistance first
        /// </remarks>
        public int CompareTo(Word word)
        {
            int result = EditDistance.CompareTo(word.EditDistance);

            return(result); // * -1; // sorts desc order
        }
Пример #3
0
        /// <summary>
        ///     Sorts a collection of words by <see cref="EditDistance"/>.
        /// </summary>
        /// <remarks>
        ///		The compare sorts in descending order, largest <see cref="EditDistance"/> first.
        /// </remarks>
        public int CompareTo(object obj)
        {
            int result = EditDistance.CompareTo(((Word)obj).EditDistance);

            return(result); // * -1; // sorts desc order
        }