Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Time
- Private _timeValue As String
- Private _timeDisplay As String
- Public Sub New(ByVal Value As String, ByVal Display As String)
- Me._timeDisplay = Display
- Me._timeValue = Value
- End Sub
- Public Property Display() As String
- Get
- Return Me._timeDisplay
- End Get
- Set(ByVal value As String)
- Me._timeDisplay = value
- End Set
- End Property
- Public Property Value() As String
- Get
- Return Me._timeValue
- End Get
- Set(ByVal value As String)
- Me._timeValue = value
- End Set
- End Property
- End Class
- Public Class Times : Inherits List(Of Time)
- Public Sub New()
- End Sub
- End Class
- 'This works
- <System.ComponentModel.DataObject()> _
- Public Class Time
- Private _timeValue As String
- Private _timeDisplay As String
- Public Sub New()
- End Sub
- Public Sub New(ByVal Value As String, ByVal Display As String)
- Me._timeDisplay = Display
- Me._timeValue = Value
- End Sub
- 'This doesn't work
- <System.ComponentModel.DataObjectMethod()> _
- Public Function getDisplay() As String
- Return Me._timeDisplay
- End Function
- 'This doesn't work
- <System.ComponentModel.DataObjectMethod()> _
- Public Function getValue() As String
- Return Me._timeValue
- End Function
- End Class
Add Comment
Please, Sign In to add comment