Class UriComparer
Equality comparer that compares URIs.
Inheritance
System.Object
UriComparer
Implements
System.Collections.Generic.IComparer<System.Uri>
System.Collections.Generic.IEqualityComparer<System.Uri>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|
System.Int32 |
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 |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>
System.Collections.Generic.IEqualityComparer<T>