Posted 16 years ago
by Nicklas Chapman
Hi,
I am using SyntaxEditor with the .NET add-on to edit C# code.
I would like to use Actipro's parsing capabilities to resolve a System.Reflection.MemberInfo from the current caret position in the editor. I have managed to resolve a MemberAccess expression easily enough, but to make the last step to an actual MemberInfo I have had to write a whole lot of code covering cases such as static members on other classes, members inherited from a base class or members referenced on an object returned by native properties.
I have the feeling that I am missing something and that I should be able to make a better job of using the parsing engine included.
What is the best way to resolve a MemberInfo object from the current caret position?
Thanks and best regards.
I am using SyntaxEditor with the .NET add-on to edit C# code.
I would like to use Actipro's parsing capabilities to resolve a System.Reflection.MemberInfo from the current caret position in the editor. I have managed to resolve a MemberAccess expression easily enough, but to make the last step to an actual MemberInfo I have had to write a whole lot of code covering cases such as static members on other classes, members inherited from a base class or members referenced on an object returned by native properties.
I have the feeling that I am missing something and that I should be able to make a better job of using the parsing engine included.
What is the best way to resolve a MemberInfo object from the current caret position?
Thanks and best regards.