Class UriComparer
Equality comparer that compares URIs.
Inheritance
System.Object
UriComparer
Implements
System.Collections.Generic.IComparer<T><System.Uri>
System.Collections.Generic.IEqualityComparer<T><System.Uri>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class UriComparer : IComparer<Uri>, IEqualityComparer<Uri>
Methods
| Improve this Doc View SourceCompare(Uri, Uri)
Compares two URIs.
Declaration
public int Compare(Uri x, Uri y)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | x | URI. |
System.Uri | y | URI. |
Returns
Type | Description |
---|---|
int |
Equals(Uri, Uri)
Determines whether two URIs are equal.
Declaration
public bool Equals(Uri x, Uri y)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | x | URI. |
System.Uri | y | URI. |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode(Uri)
Gets the Hash Code for a URI.
Declaration
public int GetHashCode(Uri obj)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | obj | URI. |
Returns
Type | Description |
---|---|
int |
Implements
System.Collections.Generic.IComparer<T>
System.Collections.Generic.IEqualityComparer<T>