Hi,
I have this code:
Why not do change "Modified" property?
Thank you.
I have this code:
PHP Code:
Public Class Form1
Dim mClass1 As New mClass
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mClass1.Items.AddRange(New String() {"a", "b", "c"})
MsgBox(mClass1.Modified)
End Sub
End Class
Class mClass
Public Modified As Boolean = False
Private _Items As New List(Of String)
Public Property Items() As List(Of String)
Get
Return _Items
End Get
Set(ByVal value As List(Of String))
_Items = value
Modified = True ' Why not work? '
End Set
End Property
End Class
Thank you.