Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
GeneralTCP/IP Pin
Melanius2-Jul-04 1:05
Melanius2-Jul-04 1:05 
GeneralRe: TCP/IP Pin
Colin Angus Mackay2-Jul-04 2:12
Colin Angus Mackay2-Jul-04 2:12 
Generalpositioning a popup window correctly when large fonts are used... Pin
misterbear1-Jul-04 23:33
misterbear1-Jul-04 23:33 
GeneralRe: positioning a popup window correctly when large fonts are used... Pin
Heath Stewart2-Jul-04 3:01
protectorHeath Stewart2-Jul-04 3:01 
GeneralMultiple problems related to PrinPreviewControl Pin
sachinkalse1-Jul-04 23:00
sachinkalse1-Jul-04 23:00 
GeneralRe: Multiple problems related to PrinPreviewControl Pin
Heath Stewart2-Jul-04 2:58
protectorHeath Stewart2-Jul-04 2:58 
QuestionHow to Serialize object's property by its Category Pin
Anonymous1-Jul-04 23:00
Anonymous1-Jul-04 23:00 
AnswerRe: How to Serialize object's property by its Category Pin
Heath Stewart2-Jul-04 2:47
protectorHeath Stewart2-Jul-04 2:47 
You only want to serialize properties based on the CategoryAttribute value? (BTW, in C# you don't need to include the ending "Attribute"; [Category("ForeGround")] will work just fine and makes for more readable code).

If you want more control over serialization, first attribute your class with [Serializable] and then implement the ISerializable interface. Read about the interface in the .NET Framework SDK for more information.

This gives you complete control over runtime serialization.

If you want to use XML Serialization, then you need to implement IXmlSerializable. This interface is, however, undocumented and not recommended for use (though you can use it - just be warned). It has three methods:
public interface IXmlSerializable
{
  XmlSchema GetSchema();
  void ReadXml(XmlReader reader);
  void WriteXml(XmlWriter writer);
}
It whould be pretty obvious what those methods do. Please note that this puts XML serialization completely in your hands. Any XML Serialization attributes you specify will not be used unless you use the information yourself in those method implementations.

 

Microsoft MVP, Visual C#
My Articles
GeneralResizing a Form Pin
Anonymous1-Jul-04 14:03
Anonymous1-Jul-04 14:03 
GeneralRe: Resizing a Form Pin
Anonymous1-Jul-04 14:04
Anonymous1-Jul-04 14:04 
GeneralC# Print Driver Pin
cobyjone1-Jul-04 12:45
cobyjone1-Jul-04 12:45 
GeneralRe: C# Print Driver Pin
cobyjone1-Jul-04 13:14
cobyjone1-Jul-04 13:14 
GeneralRe: C# Print Driver Pin
WillemM2-Jul-04 1:26
WillemM2-Jul-04 1:26 
GeneralRe: C# Print Driver Pin
cobyjone2-Jul-04 2:17
cobyjone2-Jul-04 2:17 
GeneralRe: C# Print Driver Pin
Dave Kreskowiak2-Jul-04 3:25
mveDave Kreskowiak2-Jul-04 3:25 
QuestionPocket PC database access ? Pin
Christian Graus1-Jul-04 12:31
protectorChristian Graus1-Jul-04 12:31 
AnswerRe: Pocket PC database access ? Pin
Anders Molin1-Jul-04 13:54
professionalAnders Molin1-Jul-04 13:54 
GeneralRe: Pocket PC database access ? Pin
Christian Graus1-Jul-04 13:58
protectorChristian Graus1-Jul-04 13:58 
GeneralRe: Pocket PC database access ? Pin
Anders Molin1-Jul-04 13:59
professionalAnders Molin1-Jul-04 13:59 
GeneralRe: Pocket PC database access ? Pin
Heath Stewart2-Jul-04 2:18
protectorHeath Stewart2-Jul-04 2:18 
GeneralSetupDiGetDeviceInterfaceDetail driving me mad! Pin
Pain_Elemental1-Jul-04 10:22
Pain_Elemental1-Jul-04 10:22 
GeneralRe: SetupDiGetDeviceInterfaceDetail driving me mad! Pin
leppie1-Jul-04 12:17
leppie1-Jul-04 12:17 
GeneralRe: SetupDiGetDeviceInterfaceDetail driving me mad! Pin
Pain_Elemental1-Jul-04 19:46
Pain_Elemental1-Jul-04 19:46 
GeneralRe: SetupDiGetDeviceInterfaceDetail driving me mad! Pin
Pain_Elemental3-Jul-04 21:49
Pain_Elemental3-Jul-04 21:49 
GeneralA question about object sender Pin
Member 9401251-Jul-04 9:01
Member 9401251-Jul-04 9:01 

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.