HighTechTalks DotNet Forums  

Streaming objects with no parameterless constructor

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Streaming objects with no parameterless constructor in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Peter Morris [Droopy eyes software]
 
Posts: n/a

Default Streaming objects with no parameterless constructor - 11-08-2006 , 12:37 PM






I have a class which has a constructor with a mandatory parameter
"ObjectSpace". This parameter is important because the class itself is
merely a facade onto a data cache.

If I want to send this class via remoting as serialised XML thats fine, but
if I want to receive the values back from the client I wont be able to
deserialise it due to there being no parameterless constructor will I? Is
there a way that I can hook into the deserialise process or something so
that I may create the object instance myself (as I know what to pass as a
parameter to the constructor) and then let the normal deserialisation
process set the property values?


Thanks

Pete



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.