public int CompareTo(SystemVersionInfo other) { if (Major != other.Major) { return(Major.CompareTo(other.Major)); } if (Minor != other.Minor) { return(Minor.CompareTo(other.Minor)); } if (Build != other.Build) { return(Build.CompareTo(other.Build)); } return(0); }
public bool Equals(SystemVersionInfo other) => Major == other.Major && Minor == other.Minor && Build == other.Build;