VB Code:
Public Class FiscalWeek
Private _CurrentWeek As New SubWeek()
Private _NextWeek As New SubWeek()
Public Property CurrentWeek() As SubWeek
Get
Return _CurrentWeek
End Get
Set(ByVal Value As SubWeek)
_CurrentWeek = Value
End Set
End Property
Public Property NextWeek() As SubWeek
Get
Return _NextWeek
End Get
Set(ByVal Value As SubWeek)
_NextWeek = Value
End Set
End Property
End Class
Public Class SubWeek
Private _WeekNumber As Integer
Private _YearNumber As Integer
Public ReadOnly Property WeekNumber() As Integer
Get
Return _WeekNumber
End Get
End Property
Public ReadOnly Property YearNumber()
Get
Return _YearNumber
End Get
End Property
Public Sub New()
End Sub
Public Sub New(ByVal wkNum As Integer, ByVal yrNum As Integer)
_WeekNumber = wkNum
_YearNumber = yrNum
End Sub
End Class