|
-
Mar 22nd, 2011, 10:54 AM
#1
Thread Starter
Addicted Member
new class with inherits, some properties gone?!
Code:
Public Class Form1
Public Class SearchTask
Inherits List(Of String)
' Fields
Public SearchTerm As String
Public SoundEx As String
Public AdminSettingsHash As Integer
End Class
Public St As New SearchTask
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
St.AdminSettingsHash = 302
St.Add("test1")
St.Add("test2")
St.Add("test3")
St.Add("test4")
St.Add("test5")
MsgBox(St.AdminSettingsHash)
End Sub
End Class
Why is it that if you run this, a message box appears stating '302', but if you check the debugger for the 'St' no property called 'AdminSettingsHash' is listed. Also if you serialize the class, the list of strings are saved, but not the SearchTerm, SoundEx or AdminsettingsHash.
Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|