visual studio - Using '<' character in Xml Documentation of C# code -
this question has reply here:
how show '<' char in c# xml comments? 4 answershow 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 <tagname/> c# visual-studio
No comments:
Post a Comment