Beispiel #1
0
        public int CompareTo(object obj)
        {
            SatelliteNumberRatio other = obj as SatelliteNumberRatio;

            if (Ratio < 1)
            {
                return((int)(1 / (other.Ratio - Ratio)));
            }
            return((int)(other.Ratio - Ratio));
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            SatelliteNumberRatio other = obj as SatelliteNumberRatio;

            if (obj == null)
            {
                return(false);
            }
            return(PRN.Equals(other.PRN));
        }