tags:

views:

41

answers:

4

When I type some Class, e.g. Console, then press ctrl+space and intellisense show hint "Class System.Console Represents standart input, output and error streams...." How programmatically get this text. Can't find in google, may be I'm stupid noob. Thanks.

+1  A: 

You can't. This is a documentation string parsed by IntelliSense and does not exist in the exe or dll file at runtime.

Stephen Cleary
A: 

You can parse .xml file with documentation if you know where it's located.

EDIT: If you'd like to get documentation from .NET classes, you can see folders in C:\Windows\Microsoft.NET\Framework and find there files .xml with xml-documentation.

Pavel Belousov
I need this functional on developer machine where VS and MSDN installed. So i nedd some ideas how intellisense do it and do it myself.
VS takes .xml file with documentation, parses it, and shows you hint. Documentation for class Console you can find in file mscorlib.xml. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\)
Pavel Belousov
A: 

Whoops sorry misread the question.

SDX2000
A: 

You get some of that info through Reflection. Like MethodInfo that shows the information about a method.

Wolf5
I think you won't find documentation in MethodInfo.
Pavel Belousov