xml-documentation

How to add a line break in C# .NET documentation

社会主义新天地 提交于 2019-11-27 02:53:18
This should be waaaay easier... I want to add a "coded" line break to the XML documentation in my code /// <summary> /// Get a human-readable variant of the SQL WHERE statement of the search element. <br/> /// Rather than return SQL, this method returns a string with icon-tokens, which /// could be used to represent the search in a condensed pictogram format. /// </summary> As you can see, I found some answers that demonstrated adding < and > brackets. Interestingly, the good 'ol < br/ > line break does not create a line break in the Intellisense popup. I find this annoying... Any suggestions?

How can Xml Documentation for Web Api include documentation from beyond the main project?

廉价感情. 提交于 2019-11-26 19:19:06
The documentation for enabling XmlDoc integration into your Web Api projects appears to only handle situations where all of your API types are part of your WebApi project. In particular, it discusses how to reroute the XML documentation to App_Data/XmlDocument.xml and uncommenting a line in your config that will consume that file. This implicitly only allows for one project's documentation file. However, in my setup I have my request and response types defined in a common "Models" project. This means that if I have an endpoint defined such as: [Route("auth/openid/login")] public async Task

Ways to synchronize interface and implementation comments in C# [closed]

不想你离开。 提交于 2019-11-26 11:56:28
问题 Are there automatic ways to sync comments between an interface and its implementation? I\'m currently documenting them both and wouldn\'t like to manually keep them in sync. UPDATE: Consider this code: interface IFoo{ /// <summary> /// Commenting DoThis method /// </summary> void DoThis(); } class Foo : IFoo { public void DoThis(); } When I create class like this: IFoo foo=new Foo(); foo.DoThis();//comments are shown in intellisense Here comments are not shown: Foo foo=new Foo(); foo.DoThis()

How can Xml Documentation for Web Api include documentation from beyond the main project?

梦想的初衷 提交于 2019-11-26 06:54:43
问题 The documentation for enabling XmlDoc integration into your Web Api projects appears to only handle situations where all of your API types are part of your WebApi project. In particular, it discusses how to reroute the XML documentation to App_Data/XmlDocument.xml and uncommenting a line in your config that will consume that file. This implicitly only allows for one project\'s documentation file. However, in my setup I have my request and response types defined in a common \"Models\" project.

How to reference generic classes and methods in xml documentation

☆樱花仙子☆ 提交于 2019-11-26 04:08:57
问题 When writing xml documentation you can use <see cref=\"something\">something</see> , which works of course. But how do you reference a class or a method with generic types? public class FancyClass<T> { public string FancyMethod<K>(T value) { return \"something fancy\"; } } If I was going to write xml documentation somewhere, how would I reference the fancy class? how can I reference a FancyClass<string> ? What about the method? For example in a different class I wanted to let the user know