System.Net.IPEndPoint.Equals Method

Determines whether the specified object is equal to the current System.Net.IPEndPoint instance.

Syntax

public override bool Equals (object comparand)

Parameters

comparand
The specified object to compare with the current System.Net.IPEndPoint instance.

Returns

true if comparand represents the same endpoint as the current instance. If comparand is a null reference or is not an instance of System.Net.IPEndPoint, returns false .

Remarks

Two System.Net.IPEndPoint instances are equal if their IPEndPoint.Address and IPEndPoint.Port properties contain the same values.

Note: This method overrides object.Equals(object).

Requirements

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