public override bool Equals(object obj) { if (!(obj is MajorMinor)) { return(false); } MajorMinor minor = (MajorMinor)obj; return(minor == this); }
static MajorMinor() { Zero = new MajorMinor(0, 0); }
public static MajorMinor Min(MajorMinor a, MajorMinor b) { return new MajorMinor(Math.Min(a.Major, b.Major), Math.Min(a.Minor, b.Minor)); }
public static MajorMinor Max(MajorMinor a, MajorMinor b) { return(new MajorMinor(Math.Max(a.Major, b.Major), Math.Max(a.Minor, b.Minor))); }