Monday, 15 April 2013

visual studio - Using '<' character in Xml Documentation of C# code -



visual studio - Using '<' character in Xml Documentation of C# code -

this question has reply here:

how show '<' char in c# xml comments? 4 answers

how can set characters '<' in c# xml documentations:

/// <summary> /// produces empty tag <tagname/> /// </summary> public string generateemptytag(string tagname) { homecoming string.format("<{0}/>", tagname); }

in above example, <tagname/> in documentation causes error contains < character

you should escape it, xml since inline documentation visual studio in fact xml fragment:

/// produces empty tag &lt;tagname/&gt;

c# visual-studio

No comments:

Post a Comment