Exemplo n.º 1
0
 /// <summary>
 /// Merges tags from a relation with the tags of this way and puts the result into the way tags of this way.
 /// </summary>
 /// <param name="relation">
 ///            the relation </param>
 public virtual void mergeRelationInformation(TDRelation relation)
 {
     if (relation.hasTags())
     {
         addTags(relation.Tags);
     }
     if (string.ReferenceEquals(Name, null) && relation.Name != null)
     {
         Name = relation.Name;
     }
     if (string.ReferenceEquals(Ref, null) && relation.Ref != null)
     {
         Ref = relation.Ref;
     }
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            TDRelation other = (TDRelation)obj;

            if (this.id != other.id)
            {
                return(false);
            }
            return(true);
        }