예제 #1
0
        public bool Equals(IPlace other)
        {
            FavoritePlace otherPlace = other as FavoritePlace;

            if (otherPlace == null)
            {
                return(false);
            }
            return(this.Equals(otherPlace));
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            FavoritePlace other = obj as FavoritePlace;

            if (other == null)
            {
                return(false);
            }

            return(this.Equals(other));
        }
예제 #3
0
 protected bool Equals(FavoritePlace other)
 {
     if (object.ReferenceEquals(other, null))
     {
         return(false);
     }
     return(this.Id == other.Id &&
            this.Name == other.Name &&
            this.Lat == other.Lat &&
            this.Lon == other.Lon &&
            this.Type == other.Type);
 }