I have a serializable class that I'd like to serialize with its data (of course) and also with its XmlDoc comments. Does anyone know of an existing library that does that job, or at least part of it?
Reading the XmlDoc of a C# code the way Intellisense does it is a good starting point.
Because examples speak better than theory, I'd like to have the following (C#) code
public class ApplicationOptions : ISerializable
{
///<summary>This parameter describes the X property</summary>
public int WindowPositionX;
///<summary>This comment is the same as in the XML-serialized form</summary>
public int WindowPositionY;
}
Mapped to the following serialized XML form
<!--This parameter describes the X property-->
<parameter name="WindowPositionX" Value=12 />
<!--This comment is the same as in the XML-serialized form-->
<parameter name="WindowPositionY" Value=13 />