PaddyWack
August 12th, 2002, 09:45 AM
Hi all.
I have the following problem. I have a rather large object that I want to make a copy off. The class is generated from a schema using xsd and the topmost part of the message is shown below.
During run time I NEED to make a copy of this object and was hoping that it would come with its own clone method. Unfortunately it doesn;t, so does anyone know of an alternative to using Clone so that I may make an "in memory" copy of such classes.
<System.Xml.Serialization.XmlRootAttribute([Namespace]:="", IsNullable:=false)> _
Public Class CTSClientPortalMsg
'<remarks/>
Public MsgID As String
'<remarks/>
Public Payload As Payload
'<remarks/>
Public Source As Source
'<remarks/>
Public EscalationRoute As EscalationRoute
'<remarks/>
Public Exception As Exception
End Class
I have the following problem. I have a rather large object that I want to make a copy off. The class is generated from a schema using xsd and the topmost part of the message is shown below.
During run time I NEED to make a copy of this object and was hoping that it would come with its own clone method. Unfortunately it doesn;t, so does anyone know of an alternative to using Clone so that I may make an "in memory" copy of such classes.
<System.Xml.Serialization.XmlRootAttribute([Namespace]:="", IsNullable:=false)> _
Public Class CTSClientPortalMsg
'<remarks/>
Public MsgID As String
'<remarks/>
Public Payload As Payload
'<remarks/>
Public Source As Source
'<remarks/>
Public EscalationRoute As EscalationRoute
'<remarks/>
Public Exception As Exception
End Class