Esempio n. 1
0
        /// <summary>
        /// Compares the current <see cref="OsmRelationMemberReference"/> object to the specified object for equivalence.
        /// </summary>
        /// <param name="obj">The <see cref="OsmRelationMemberReference"/> object to test for equivalence with the current object.</param>
        /// <returns>
        /// <c>true</c> if the two <see cref="OsmRelationMemberReference"/> objects are equal; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            OsmRelationMemberReference that = obj as OsmRelationMemberReference;

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

            return(referenceType.Equals(that.referenceType) && referenceId.Equals(that.referenceId));
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OsmRelationMember"/> class
 /// with the specified member's reference and role.
 /// </summary>
 /// <param name="memberReference">The relation's member's reference.</param>
 /// <param name="role">The role of the relation's member.</param>
 public OsmRelationMember(OsmRelationMemberReference memberReference,
                          string role)
     : this(memberReference)
 {
     this.role = role;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OsmRelationMember"/> class
 /// with the specified member's reference.
 /// </summary>
 /// <param name="memberReference">The relation's member's reference.</param>
 public OsmRelationMember(OsmRelationMemberReference memberReference)
 {
     this.memberReference = memberReference;
 }