Imports System Namespace Areas.HelpPage ''' ''' This represents an image sample on the help page. There's a display template named ImageSample associated with this class. ''' Public Class ImageSample Private _src As String ''' ''' Initializes a new instance of the class. ''' ''' The URL of an image. Public Sub New(src As String) If (src Is Nothing) Then Throw New ArgumentNullException("src") End If Me.Src = src End Sub Public Property Src As String Get Return _src End Get Private Set(value As String) _src = value End Set End Property Public Overrides Function Equals(obj As Object) As Boolean Dim other As ImageSample = TryCast(obj, ImageSample) Return Not other Is Nothing AndAlso Src = other.Src End Function Public Overrides Function GetHashCode() As Integer Return Src.GetHashCode() End Function Public Overrides Function ToString() As String Return Src End Function End Class End Namespace