Hi, I am serializing a class in C# following this example http://msdn.microsoft.com/en-us/library/2baksw0z(v=vs.110).aspx Here is my test class [Serializable] public class Test { [XmlElement("SomeXmlElementName")] public int Something { get; set; } } This works well and creates and when the class content is serialized it creates a file with a node named SomeXmlElementName with the right value. What I would also like is to include a comment in the XML file and I am looking for some .Net attribute I can use to decorate the method to include the comment. The code below does not compile, but it demonstrates the sort of thing I am after [Serializable] public class Test { [XmlElement("SomeXmlElementName"), XmlComment("Some comment to include in the XML file when created"] public int Something { get; set; } } Does something like this exist at all? Thank you
AdditionalRuntimeInfo
ApplicationVersion
Version
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)