public bool Equals(IPlace other) { FavoritePlace otherPlace = other as FavoritePlace; if (otherPlace == null) { return(false); } return(this.Equals(otherPlace)); }
public override bool Equals(object obj) { FavoritePlace other = obj as FavoritePlace; if (other == null) { return(false); } return(this.Equals(other)); }
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); }