public int CompareTo(FrameworkPath other) { int c = Version.CompareTo(other.Version); if (c != 0) { return(c); } c = Bitness - other.Bitness; if (c != 0) { return(c); } return(StringComparer.OrdinalIgnoreCase.Compare(Path, other.Path)); }
public int CompareTo(FrameworkPaths other) { int c = Version.CompareTo(other.Version); if (c != 0) { return(c); } c = Bitness - other.Bitness; if (c != 0) { return(c); } return(StringComparer.OrdinalIgnoreCase.Compare(Path.GetDirectoryName(Paths[0]), Path.GetDirectoryName(other.Paths[0]))); }
public int CompareTo(FrameworkPaths other) { int c = Version.CompareTo(other.Version); if (c != 0) { return(c); } c = Bitness - other.Bitness; if (c != 0) { return(c); } return(CompareTo(Paths, other.Paths)); }
public int CompareTo([AllowNull] FrameworkPaths other) { if (other is null) { return(1); } int c = Version.CompareTo(other.Version); if (c != 0) { return(c); } c = Bitness - other.Bitness; if (c != 0) { return(c); } return(CompareTo(Paths, other.Paths)); }