/// <summary> /// Compares the name towards another name. /// </summary> /// <param name="obj">The name towards this name is compared.</param> /// <returns>True, of this name equals the specified name; Otherwise false.</returns> public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } var riName = (RIName)obj; if (riName.LocalName != LocalName) { return(false); } if (!Namespace.Equals(riName.Namespace)) { return(false); } return(true); }