Gets an Enhanced Hash Code for a Uri.
dotNetRDF (in dotNetRDF.dll) Version:
public static int GetEnhancedHashCode(
this Uri u
Public Shared Function GetEnhancedHashCode (
u As Uri
) As Integer
- Type: SystemUri
Uri to get Hash Code for.
[Missing <returns> documentation for "M:VDS.RDF.Extensions.GetEnhancedHashCode(System.Uri)"]
In Visual Basic and C#, you can call this method as an instance method on any object of type Uri
. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic)
or Extension Methods (C# Programming Guide)
The .Net Uri
class Hash Code ignores the Fragment ID when computing the Hash Code which means that URIs with the same basic URI but different Fragment IDs have identical Hash Codes. This is perfectly acceptable and sensible behaviour for normal URI usage since Fragment IDs are only relevant to the Client and not the Server. But
in the case of URIs in RDF the Fragment ID is significant and so we need in some circumstances to compute a Hash Code which includes this information.