Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

List (Of String)? changed

$
0
0
Hi,

I have this code:
PHP Code:

Public Class Form1

    Dim mClass1 
As New mClass

    
Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles 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 

Why not do change "Modified" property?

Thank you.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>