Is there a public method for getting doc from XML doc files?

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 13 years ago by Craig - Varigence, Inc.
Version: 11.1.0544
If you select an item in an intelliprompt completion list, a info popup appears next to it, with information about the item and a green line containing any documentation. I've noticed that the C# completion provider can process documentation that's inside a XML doc file that's built with my .net project. I'm curious if the methods you use to obtain the documentation string from the XML doc are public so I can use them in my own completion providers.



[Modified at 09/01/2011 11:56 AM]

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Craig,

Yes, each IAssembly has a Documentation property which can be used to retrieve known documentation for a type or member. So once you figure out which assembly defines the type/member you can do:
var docProvider = assembly.Documentation.GetDocumentation(typeDef);
if (docProvider != null) {
    var comment = docProvider.GetSummary();

Actipro Software Support

The latest build of this product (v24.1.2) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.