To enable the serialization of a class, you need to put the SerializableAttribute on the class like this:
<Serializable()> _
Public Class MyClass
End Class
That flag tells the compiler that you can serialize the object. Now, within the class definition, if there are fields that you do not want to serialize, then you can mark then with the NotSerializableAttribute() like this:<NotSerializable()> _
Private _MyField As String
Then, you use the formatters within the System.Runtime.Serialization.Formatters namespace to serialize the objects to and from streams, just like the .NET serialization samples show.
Now, when you say "serialization", you might also be talking about the windows forms designer "serializing" your property values to the .designer.vb file at design-time, but that's got a whole different set of attributes that are attached to the properties on a class.