Imports System.Text.RegularExpressions
Namespace Comments
Public MustInherit Class DocumentationComment
Private _Summary As String
Private _Remarks As String
Private _See As String
Private _SeeAlso As String
Public Property Summary() As String
Get
Return _Summary
End Get
Set(ByVal Value As String)
_Summary = Value
End Set
End Property
Public Property Remarks() As String
Get
Return _Remarks
End Get
Set(ByVal Value As String)
_Remarks = Value
End Set
End Property
Public Property See() As String
Get
Return _See
End Get
Set(ByVal Value As String)
_See = Value
End Set
End Property
Public Property SeeAlso() As String
Get
Return _SeeAlso
End Get
Set(ByVal Value As String)
_SeeAlso = Value
End Set
End Property
End Class
Public Class ParamComment
Private _ParameterName As String
Private _ParameterDescription As String
Public Property ParameterName() As String
Get
Return _ParameterName
End Get
Set(ByVal Value As String)
_ParameterName = Value
End Set
End Property
Public Property ParameterDescription() As String
Get
Return _ParameterDescription
End Get
Set(ByVal Value As String)
_ParameterDescription = Value
End Set
End Property
Sub New(ByVal Name As String, ByVal Description As String)
Me.ParameterName = Name
Me.ParameterDescription = Description
End Sub
End Class
Public Class ParamCommentList
Inherits List(Of ParamComment)
Public Overloads Sub Add(ByVal Name As String, ByVal Description As String)
Me.Add(New ParamComment(Name, Description))
End Sub
End Class
Public Class GenericComment
Inherits DocumentationComment
End Class
Public Class MethodComment
Inherits DocumentationComment
Private _Returns As String
Private _TypeParams As ParamCommentList
Private _Params As ParamCommentList
Private _Exceptions As ParamCommentList
Public Property Returns() As String
Get
Return _Returns
End Get
Set(ByVal Value As String)
_Returns = Value
End Set
End Property
Public Property TypeParams() As ParamCommentList
Get
Return _TypeParams
End Get
Set(ByVal Value As ParamCommentList)
_TypeParams = Value
End Set
End Property
Public Property Params() As ParamCommentList
Get
Return _Params
End Get
Set(ByVal Value As ParamCommentList)
_Params = Value
End Set
End Property
Public Property Exceptions() As ParamCommentList
Get
Return _Exceptions
End Get
Set(ByVal value As ParamCommentList)
_Exceptions = value
End Set
End Property
Sub New()
Me.TypeParams = New ParamCommentList
Me.Params = New ParamCommentList
End Sub
End Class
Public Class PropertyComment
Inherits MethodComment
Private _Value As String
Public Property Value() As String
Get
Return _Value
End Get
Set(ByVal Val As String)
_Value = Val
End Set
End Property
End Class
End Namespace