The code model doesn't provide that information. You need to manually
parse the function source code.

Signature
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code
> The code model doesn't provide that information. You need to manually
> parse the function source code.
[quoted text clipped - 4 lines]
> VSdocman - Commenter and generator of class documentation for C#, VB
> .NET and ASP .NET code
Is it possible to retrieve the function body some how? For example,
say i have a CodeFunction or CodeElement instance. Is there any way
that i can get its definition, So that i can parse later on?
Peter Macej - 24 Dec 2007 14:07 GMT
Yes. Use CodeFunction.StartPoint and CodeFunction.EndPoint to get text
region. Get EditPoint from TextPoint and use its GetText method.
Something like this:
source =
CodeFunction.StartPoint.CreateEditPoint().GetText(CodeFunction.EndPoint)

Signature
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code