Click here to Skip to main content
16,017,207 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
if_mel_yes_else_no4-Sep-05 5:18
if_mel_yes_else_no4-Sep-05 5:18 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
Luis Alonso Ramos4-Sep-05 8:16
Luis Alonso Ramos4-Sep-05 8:16 
QuestionXML Serializer: circular reference due to public attribute? Pin
peterchen3-Sep-05 21:16
peterchen3-Sep-05 21:16 
AnswerRe: XML Serializer: circular reference due to public attribute? Pin
Mathew Hall3-Sep-05 21:35
Mathew Hall3-Sep-05 21:35 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
peterchen3-Sep-05 21:47
peterchen3-Sep-05 21:47 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
Judah Gabriel Himango4-Sep-05 11:47
sponsorJudah Gabriel Himango4-Sep-05 11:47 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
peterchen4-Sep-05 12:12
peterchen4-Sep-05 12:12 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
Judah Gabriel Himango4-Sep-05 14:59
sponsorJudah Gabriel Himango4-Sep-05 14:59 
Actually, I may have misled you in my previous post. The Serializable and NonSerializable attributes apply to wide-scale serialization: for example, if you wanted to use .NET remoting to send an object over to another process or another machine, these attributes would apply.

The XmlIgnore and XmlInclude attributes really apply only to the specialized case of XML serialization.

However, I use Xml serialization so rarely, you might be better off getting an answer from someone more experienced with it. At work, we almost exclusively do binary serialization, as it's quite a bit faster. The only xml serializing we do is with application config files, and even then, there's built-in support in the framework for configuration files.


peterchen wrote:
Is is actually possible to tag only the attributes / properties I want to serialize?

Sure. Mark your class as Serializable, then have it implement ISerializable. This will allow you to control precisely what data is saved and what is ignored.

*edit* Or, optionally, just mark your class as Serializable, then mark each field you don't want serialized as NonSerializable.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango



-- modified at 21:02 Sunday 4th September, 2005

QuestionVS7: No Exception Info under Debugger? Pin
peterchen3-Sep-05 21:02
peterchen3-Sep-05 21:02 
QuestionVS7 Forms designer - 2 questions Pin
peterchen3-Sep-05 20:43
peterchen3-Sep-05 20:43 
AnswerRe: VS7 Forms designer - 2 questions Pin
Mathew Hall3-Sep-05 21:25
Mathew Hall3-Sep-05 21:25 
AnswerAhhhh! Pin
peterchen3-Sep-05 22:02
peterchen3-Sep-05 22:02 
GeneralRe: Ahhhh! Pin
Mathew Hall3-Sep-05 22:14
Mathew Hall3-Sep-05 22:14 
QuestionHow to add Binary Resources Pin
Heinz_3-Sep-05 20:33
Heinz_3-Sep-05 20:33 
AnswerRe: How to add Binary Resources Pin
turbochimp4-Sep-05 16:34
turbochimp4-Sep-05 16:34 
GeneralRe: How to add Binary Resources Pin
Heinz_5-Sep-05 9:51
Heinz_5-Sep-05 9:51 
GeneralRe: How to add Binary Resources Pin
turbochimp6-Sep-05 11:21
turbochimp6-Sep-05 11:21 
GeneralRe: How to add Binary Resources Pin
Heinz_7-Sep-05 19:55
Heinz_7-Sep-05 19:55 
GeneralRe: How to add Binary Resources Pin
turbochimp7-Sep-05 20:43
turbochimp7-Sep-05 20:43 
GeneralRe: How to add Binary Resources Pin
Heinz_8-Sep-05 11:31
Heinz_8-Sep-05 11:31 
Questionplz help me Pin
Sayed Sajjad Raza Zaidi3-Sep-05 20:12
Sayed Sajjad Raza Zaidi3-Sep-05 20:12 
AnswerRe: plz help me Pin
Mohamad Al Husseiny4-Sep-05 10:14
Mohamad Al Husseiny4-Sep-05 10:14 
Questionparse string by using xml Pin
savage_3-Sep-05 13:50
savage_3-Sep-05 13:50 
AnswerRe: parse string by using xml Pin
Guffa3-Sep-05 15:11
Guffa3-Sep-05 15:11 
QuestionPlease Help:Marshaling Question?? Pin
E6AD3-Sep-05 12:51
E6AD3-Sep-05 12:51 

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.