Clone an Object Using Serialization
Version Compatibility: Visual Basic.NET, ASP.NET
Note that the object copied must be marked as serializiable. If the class definition for the object contains a member that is not marked as serializable, the method will fail (refer to the comments in declarations for more info).
Instructions: Copy the declarations and code below and paste directly into your VB project.