MS have created an interface in the .Net framework called 'ICloneable' that
is a pattern for copying an instance of a class and returing the new
instance.
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemicloneableclasstopic.asp
HTH
Ollie Riches
All you have to do is impletm "MP"
<martin.pare@I_Will_Not_Give_You_My_Address> wrote in message
news:#(E-Mail Removed)...
> Thank you Ollie,
> Then the obvious question is: Is there a simple way map one instance
of
> an object onto another? Kind of a copy operator....
>
> Thank you again.
>
> -Martin
>
> "Ollie Riches" <(E-Mail Removed)> wrote in message
> news:Ou$(E-Mail Removed)...
> > when deserialize(re-hydrate) an object from an XML stream it creates a
new
> > instance of the type so therefore it will have a completely different
hash
> > code (GetHashCode()). If you want to map this onto an already existing
> > instance of the type you will have to do this after the deserialization
> > has
> > been compeleted.
> >
> > HTH
> >
> >
> > Ollie Riches
> > "MP" <martin.pare@I_Will_Not_Give_You_My_Address> wrote in message
> > news:(E-Mail Removed)...
> >> Hi,
> >> I would like to be able to deserialize a stream to a specific
> > instance.
> >> Deserialize returns me a new instances and that is not really what we
> > need,
> >> we need to deserialized to an existing instance. Can anyone point me in
> > the
> >> rigth direction?
> >>
> >>
> >> Regards
> >>
> >> -Martin
> >>
> >>
> >
> >
>
>