Example #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is MajorMinor))
            {
                return(false);
            }
            MajorMinor minor = (MajorMinor)obj;

            return(minor == this);
        }
Example #2
0
 static MajorMinor()
 {
     Zero = new MajorMinor(0, 0);
 }
Example #3
0
 public static MajorMinor Min(MajorMinor a, MajorMinor b)
 {
     return new MajorMinor(Math.Min(a.Major, b.Major), Math.Min(a.Minor, b.Minor));
 }
Example #4
0
 public static MajorMinor Max(MajorMinor a, MajorMinor b)
 {
     return(new MajorMinor(Math.Max(a.Major, b.Major), Math.Max(a.Minor, b.Minor)));
 }
Example #5
0
 static MajorMinor()
 {
     Zero = new MajorMinor(0, 0);
 }