Suppose you have MethodInfo or any other subclass of ClassInfo, in fact, in C #. Is it possible to get the name of the file in which it was declared, and possibly the line numbers where the declaration begins? This information must exist somewhere in the debug mode metadata, since instantiating the StackTrace will provide you with this information. Should I search in System.Diagnostics instead of System.Reflection?
reflection c #
Robert Davis
source share