Click here to Skip to main content
15,909,827 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending and Receiving Data Pin
Richard Beacroft11-Jun-04 6:55
Richard Beacroft11-Jun-04 6:55 
GeneralAny Idea Pin
sreejith ss nair10-Jun-04 20:29
sreejith ss nair10-Jun-04 20:29 
GeneralRe: Any Idea Pin
Corinna John10-Jun-04 23:13
Corinna John10-Jun-04 23:13 
GeneralRe: Any Idea Pin
Heath Stewart11-Jun-04 3:47
protectorHeath Stewart11-Jun-04 3:47 
GeneralChanging the look of a row of datagrid on mouseover Pin
rajeev_mr10-Jun-04 19:34
rajeev_mr10-Jun-04 19:34 
GeneralRe: Changing the look of a row of datagrid on mouseover Pin
Heath Stewart11-Jun-04 3:45
protectorHeath Stewart11-Jun-04 3:45 
GeneralXML Serialization & Deserialization Pin
khchan10-Jun-04 18:40
khchan10-Jun-04 18:40 
GeneralRe: XML Serialization & Deserialization Pin
Heath Stewart11-Jun-04 3:37
protectorHeath Stewart11-Jun-04 3:37 
If you read about XML Serialization in the .NET Framework SDK (i.e., on the XmlSerializer class), you'll see that only public properties and fields are serialized.

If you want to override this behavior, you can implement an undocumented, not-supported interface (meaning they could change it at any time) named IXmlSerializable. It's declared as follows:
public interface IXmlSerializable
{
  XmlSchema GetSchema();
  void ReadXml(XmlReader reader);
  void WriteXml(XmlWriter writer);
}
The actual type is System.Xml.Serialization.IXmlSerializable. Implement that and read and write what you need. Keep in mind that the XmlSerializer uses either the IXmlSerializable implementation, or uses the XML Serialization attributes, but not both (meaning if you use the attributes, you'll have to take them into account yourself using reflection).

 

Microsoft MVP, Visual C#
My Articles
Generaladding a Menu bar log Pin
samithas10-Jun-04 18:18
samithas10-Jun-04 18:18 
QuestionHow does ImageIndex property works Pin
luming112233445510-Jun-04 17:42
luming112233445510-Jun-04 17:42 
AnswerRe: How does ImageIndex property works Pin
Nick Seng10-Jun-04 21:30
Nick Seng10-Jun-04 21:30 
GeneralRe: How does ImageIndex property works Pin
Heath Stewart11-Jun-04 3:30
protectorHeath Stewart11-Jun-04 3:30 
AnswerRe: How does ImageIndex property works Pin
Heath Stewart11-Jun-04 3:29
protectorHeath Stewart11-Jun-04 3:29 
GeneralRe: How does ImageIndex property works Pin
luming112233445513-Jun-04 16:17
luming112233445513-Jun-04 16:17 
GeneralRe: How does ImageIndex property works Pin
Heath Stewart13-Jun-04 17:52
protectorHeath Stewart13-Jun-04 17:52 
Generalincremental installation of C# application Pin
ting66810-Jun-04 15:52
ting66810-Jun-04 15:52 
GeneralRe: incremental installation of C# application Pin
Peter Vertes10-Jun-04 17:52
Peter Vertes10-Jun-04 17:52 
GeneralRe: incremental installation of C# application Pin
Anonymous11-Jun-04 19:00
Anonymous11-Jun-04 19:00 
GeneralProblem using embedded WMP to play file in C# Pin
Admiral Ackbar10-Jun-04 15:43
Admiral Ackbar10-Jun-04 15:43 
GeneralRe: Problem using embedded WMP to play file in C# Pin
User 96257810-Jun-04 17:21
User 96257810-Jun-04 17:21 
GeneralRe: Problem using embedded WMP to play file in C# Pin
Admiral Ackbar11-Jun-04 2:33
Admiral Ackbar11-Jun-04 2:33 
GeneralAlso..... Pin
User 96257812-Jun-04 7:17
User 96257812-Jun-04 7:17 
GeneralRe: Also..... Pin
Admiral Ackbar12-Jun-04 11:30
Admiral Ackbar12-Jun-04 11:30 
GeneralRe: Also..... Pin
User 96257812-Jun-04 17:08
User 96257812-Jun-04 17:08 
GeneralWindows Services - Config App Pin
AndyBewley10-Jun-04 12:41
sussAndyBewley10-Jun-04 12: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.