/// <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); }
public int CompareTo(object other) { return(BaseName.CompareTo(other.ToString())); }