implements iequatable vb.net code example

Example: implements iequatable vb.net

C#    public bool Equals(PointClass other)    {       if (Object.ReferenceEquals(other, null))       {          return false;       }       if (Object.ReferenceEquals(other, this))       {          return true;       }       return (this._X == other._X) && (this._Y == other._Y);    }VB    Public Overloads Function Equals(ByVal other As PointClass) As Boolean   Implements System.IEquatable(Of PointClass).Equals       If other Is Nothing Then Return False       If other Is Me Then Return True       Return m_X = other.m_X AndAlso m_Y = other.m_Y    End Function

Tags:

Misc Example