System.Net.DnsEndPoint.Equals Method

Compares two System.Net.DnsEndPoint objects.

Syntax

public override bool Equals (object comparand)

Parameters

comparand
A System.Net.DnsEndPoint instance to compare to the current instance.

Returns

true if the two System.Net.DnsEndPoint instances are equal; otherwise, false.

Remarks

The DnsEndPoint.Equals(object) method compares the current System.Net.DnsEndPoint instance with the comparand parameter and returns true if the two instances contain the same endpoint.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0