コード例 #1
0
ファイル: Word.cs プロジェクト: sirbharatkumar/StickyNote
 public int CompareTo(object obj)
 {
     return(EditDistance.CompareTo(((Word)obj).EditDistance));
 }
コード例 #2
0
ファイル: Word.cs プロジェクト: zyx405030770/gitextensions
        /// <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
        }