AnyUri.Equals Method (object)AnyUri.Equals Method (Object)AnyUri::Equals Method (object^)

Determines whether this instance is equal to a specified object.

Syntax

Public Overrides Function Equals( _
    obj As Object _
) As Boolean
public override bool Equals(
    object obj
)
public:
virtual bool Equals(
    object^ obj
) override
 

Parameters

obj

Type: System.ObjectSystem.ObjectSystem::Object^

An object to compare to this instance.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if obj is an instance of AnyUriAnyUriAnyUri and equals the value of this instance; otherwise falseFalsefalse.

Remarks

Two AnyUriAnyUriAnyUri values are considered equal if their unparsed string values are identical. In order to improve the comparison, you may consider comparing the stringStringString values returned by the NormalizeNormalizeNormalize method.