Object Serialization in VB.NET (Custom Format)
Category:
C#, VB.NET, ASP.NETType:
ModulesDifficulty:
IntermediateAuthor:
Nathan MoschkinVersion Compatibility: Visual Basic.NET
More information:
This module implements object serialization to a text file, but in a different format than the one used within .NET to serialize objects. The format is more human readable and more customizable, looking something like this:
[Class MyObject] [System.Double] Sigma = 0 [Boolean] Checked = False //etc. [End Class]
You can load or save objects and also add comments to the file, using the // characters as in C++ or Java.
Included is a sample application that loads values to and saves values from a property grid control.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download settingsio.zip