Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help! I've fallen and can't get up. Pin
mike montagne28-Feb-07 12:24
mike montagne28-Feb-07 12:24 
QuestionSocket Problem Pin
Rahul.RK27-Feb-07 18:42
Rahul.RK27-Feb-07 18:42 
Questionclosing form with its parent Pin
Saira Tanwir27-Feb-07 17:54
Saira Tanwir27-Feb-07 17:54 
AnswerRe: closing form with its parent Pin
Shajeel27-Feb-07 18:23
Shajeel27-Feb-07 18:23 
AnswerRe: closing form with its parent Pin
Saira Tanwir27-Feb-07 18:42
Saira Tanwir27-Feb-07 18:42 
GeneralRe: closing form with its parent Pin
Shajeel27-Feb-07 19:20
Shajeel27-Feb-07 19:20 
AnswerRe: closing form with its parent Pin
Saira Tanwir27-Feb-07 19:29
Saira Tanwir27-Feb-07 19:29 
QuestionHow to do XML serialization. Pin
wout de zeeuw27-Feb-07 17:49
wout de zeeuw27-Feb-07 17:49 
Here's the trilemma that I'm in: I want to XML serialize an object tree. Some properties have getters only, so there are a few options to serialize those (note that this is in a web service scenario, so the schemas are required too):

- Go the easy way, add setters to the properties. This degrades the class design somewhat, but might be acceptable.

- Go the hard way, implement IXmlSerializable and hand code the serialization (note that the schema must be created too, using the XmlSchemaProviderAttribute). This option doesn't degrade the class design, but at a considerable cost. I have explored some in this direction, using the XmlReflectionImporter class some short cuts might be taken in creating the schema, but I haven't successfully combined this technique with a hand written implementation of XmlSchemaProviderAttribute (see here[^] for more details for those interested).

- Try something really groovy, uncharted territory, and thus potentially more risky. I was thinking about writing a reflection based serializer/deserializer/schema creator myself. How hard can it be? It's just a bunch of properties, and collections. I'd add the ability to serialize a property with only a getter. That's the only issue with the default xml serializers. Basically the behaviour would be the same as serializing collections, those can have a getter only too.

So, which option would be the wisest? Am I overlooking any options that I don't know of or didn't think of? Unsure | :~

Wout

QuestionTooltip on disabled controls? Pin
Nilesh K.27-Feb-07 17:18
Nilesh K.27-Feb-07 17:18 
AnswerRe: Tooltip on disabled controls? Pin
Shajeel27-Feb-07 18:40
Shajeel27-Feb-07 18:40 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 18:50
Nilesh K.27-Feb-07 18:50 
GeneralRe: Tooltip on disabled controls? Pin
Harini N K27-Feb-07 18:56
Harini N K27-Feb-07 18:56 
GeneralRe: Tooltip on disabled controls? Pin
Shajeel27-Feb-07 19:13
Shajeel27-Feb-07 19:13 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 20:10
Nilesh K.27-Feb-07 20:10 
GeneralRe: Tooltip on disabled controls? Pin
mike montagne27-Feb-07 20:12
mike montagne27-Feb-07 20:12 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.27-Feb-07 20:22
Nilesh K.27-Feb-07 20:22 
GeneralRe: Tooltip on disabled controls? Pin
mike montagne28-Feb-07 5:41
mike montagne28-Feb-07 5:41 
GeneralRe: Tooltip on disabled controls? Pin
Nilesh K.28-Feb-07 16:01
Nilesh K.28-Feb-07 16:01 
GeneralRe: Tooltip on disabled controls? Pin
mike montagne28-Feb-07 17:53
mike montagne28-Feb-07 17:53 
QuestionCreating Help file (chm ) Pin
Praveen_S27-Feb-07 17:16
Praveen_S27-Feb-07 17:16 
AnswerRe: Creating Help file (chm ) Pin
Vasudevan Deepak Kumar27-Feb-07 17:29
Vasudevan Deepak Kumar27-Feb-07 17:29 
QuestionUserControl Pin
fjlv200527-Feb-07 16:44
fjlv200527-Feb-07 16:44 
QuestionConverting strings to other data types Pin
Leo Smith27-Feb-07 14:10
Leo Smith27-Feb-07 14:10 
AnswerRe: Converting strings to other data types Pin
Christian Graus27-Feb-07 15:13
protectorChristian Graus27-Feb-07 15:13 
GeneralRe: Converting strings to other data types Pin
Leo Smith27-Feb-07 15:41
Leo Smith27-Feb-07 15:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.