TheAirline.Models.General.Countries.Towns.Town.Equals C# (CSharp) Method

Equals() public method

public Equals ( object u ) : bool
u object
return bool
        public override bool Equals(object u)
        {
            // If parameter is null return false:
            if (!(u is Town))
            {
                return false;
            }

            // Return true if the fields match:
            return (this == (Town) u);
        }