You can use the (somewhat buggy) FileCodeModel.CodeElementFromPoint()
passing vsCMElement.vsCMElementFunction as 2nd parameter, and then use
Carlos J. Quintero
MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
"Adam Hearn" < XXXX@XXXXX.COM > escribien el mensaje
>> New to VS.NET 2003 macros but have a simple question... Is there anyway to
>> obtain (or infer) the current method name when executing a macro?
>> I'd want to use it in a macro to place a temporary trace line in the code
>> that contains the name of the method. I could use reflection to get the
>> of the method at runtime but I'd like to know if this is possible using
>> macros in the IDE.
>> Thanks in advance!