Esempio n. 1
0
        public int CompareTo(object other)
        {
            SeekerData seeker = other as SeekerData;

            if (seeker == null)
            {
                throw new System.ApplicationException("Invalid SeekerData provided for comparison");
            }

            return(FScore.CompareTo(seeker.FScore));
        }
Esempio n. 2
0
            public int CompareTo(object obj)
            {
                PathData other;

                other = obj as PathData;
                if (other != null)
                {
                    return(FScore.CompareTo(other.FScore));
                }
                else
                {
                    throw new System.ArgumentException("Invalid PathData given");
                }
            }
Esempio n. 3
0
 public int CompareTo(Vertex other) => FScore.CompareTo(other.FScore);