Пример #1
0
        /// <summary>
        ///   Compares this fomod info to the given fomod info.
        /// </summary>
        /// <param name="other">The fomod info to which to compare this fomod info.</param>
        /// <returns>
        ///   A value less than 0 if this fomod info is less than the given fomod info;
        ///   or, a value of 0 if this fomod info is equal to the given fomod info;
        ///   or, a value greater than 0 if this fomod is greater then the given fomod info.
        /// </returns>
        public int CompareTo(FomodInfo other)
        {
            var intResult = BaseName.CompareTo(other.BaseName);

            if (intResult == 0)
            {
                intResult = MachineVersion.CompareTo(other.MachineVersion);
            }
            return(intResult);
        }
Пример #2
0
 public int CompareTo(object other)
 {
     return(BaseName.CompareTo(other.ToString()));
 }