Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Process.Start on Vista return invalid Process Pin
dcabrames9-Jun-08 3:24
dcabrames9-Jun-08 3:24 
GeneralRe: Process.Start on Vista return invalid Process Pin
Giorgi Dalakishvili9-Jun-08 3:43
mentorGiorgi Dalakishvili9-Jun-08 3:43 
GeneralRe: Process.Start on Vista return invalid Process Pin
dcabrames9-Jun-08 5:01
dcabrames9-Jun-08 5:01 
GeneralRe: Process.Start on Vista return invalid Process Pin
Giorgi Dalakishvili9-Jun-08 5:13
mentorGiorgi Dalakishvili9-Jun-08 5:13 
QuestionWCF DataContractFormat for System.Exception Pin
bit_cmdr6-Jun-08 7:34
bit_cmdr6-Jun-08 7:34 
QuestionFile IO Pin
netJP12L6-Jun-08 5:40
netJP12L6-Jun-08 5:40 
AnswerRe: File IO Pin
Colin Angus Mackay6-Jun-08 5:59
Colin Angus Mackay6-Jun-08 5:59 
GeneralRe: File IO Pin
Spacix One6-Jun-08 9:09
Spacix One6-Jun-08 9:09 
GeneralRe: File IO Pin
Colin Angus Mackay6-Jun-08 9:50
Colin Angus Mackay6-Jun-08 9:50 
AnswerRe: File IO Pin
Spacix One19-Jun-08 2:28
Spacix One19-Jun-08 2:28 
QuestionPosting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 4:30
Jim Crafton6-Jun-08 4:30 
AnswerRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 4:40
leppie6-Jun-08 4:40 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 5:29
Jim Crafton6-Jun-08 5:29 
GeneralRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 5:55
leppie6-Jun-08 5:55 
GeneralRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 6:09
leppie6-Jun-08 6:09 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 9:12
Jim Crafton6-Jun-08 9:12 
AnswerRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 4:45
led mike6-Jun-08 4:45 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 5:29
Jim Crafton6-Jun-08 5:29 
GeneralRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 6:06
led mike6-Jun-08 6:06 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 6:12
Jim Crafton6-Jun-08 6:12 
GeneralRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 8:26
led mike6-Jun-08 8:26 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 9:15
Jim Crafton6-Jun-08 9:15 
QuestionSerialize and deserialize with extra types Pin
Eric Burns6-Jun-08 3:46
Eric Burns6-Jun-08 3:46 
I am serializing a class that has an array of type Base.

The type of each of these items is actually a subclass of Base (many different types).

To avoid requiring the Base class to know about all the subclasses, using [XmlInclude] (since this isn't an option for me since some of the subclasses are dynamically compiled and not known at compilation time), when I create the serializer, I pass an array of types like so:

XmlSerializer serial = new XmlSerializer( typeOfObjectToBeSerialized, extraTypesArray );

That works great. I can then use the same serializer to deserialize the file. Wonderful. . . .

Except . . . in practice, I'm not deserializing immediately after serializing. I wrote it out to a file because I want to save the state and be able to shut down the program, come back later and deserialize it. At that point, I no longer have that extraTypesArray, and it can't deserialize without it.

Does anybody have a clever solution to this problem? The only thing I can think to do add a load of strings to the beginning of the xml file and pull them out at the beginning, turn them into types somehow, and use them to create the serializer. But I'm hoping for something cleaner. Any ideas?
AnswerRe: Serialize and deserialize with extra types Pin
leppie6-Jun-08 4:42
leppie6-Jun-08 4:42 
QuestionHow to create notification icon (icon neer the windows clock ) in C# ? Pin
Yanshof6-Jun-08 3:21
Yanshof6-Jun-08 3:21 

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.