We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e825f3b commit 1afaca7Copy full SHA for 1afaca7
RDFSharp/Model/RDFNamespace.cs
@@ -99,6 +99,18 @@ public override string ToString()
99
/// </summary>
100
public bool Equals(RDFNamespace other)
101
=> other != null && NamespaceID.Equals(other.NamespaceID);
102
+
103
+ /// <summary>
104
+ /// Performs the equality comparison between two namespaces
105
+ /// </summary>
106
+ public override bool Equals(object other)
107
+ => other is RDFNamespace ns && NamespaceID == ns.NamespaceID;
108
109
110
+ /// Calculates the hashcode of this namespace
111
112
+ public override int GetHashCode()
113
+ => NamespaceID.GetHashCode();
114
#endregion
115
116
#region Methods
0 commit comments