You can?t, code inside procedures is not parsed by the extensibility model,
so you will have to parse it yourself. While for VB.NET is easier thanks to
its verbose syntax, for C# is more complicated.

Signature
Carlos J. Quintero (Visual Developer - .NET MVP)
FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)
> Hi,
>
> how can i get a local CodeVariable in a CodeFunction