Fhnw.Ecnf.RoutePlanner.RoutePlannerLib.City.Equal C# (CSharp) 메소드

Equal() 공개 메소드

public Equal ( City c ) : bool
c City
리턴 bool
        public bool Equal(City c)
        {
            // If parameter is null return false:
            if ((City)c == null)
            {
                return false;
            }

            // Return true if the fields match:
            return (this.Name.Equals(c.Name) && this.Country.Equals(c.Country));
        }