|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Determine caller class nameHi!
Is there a way in VB.NET to determine the caller's class name? System.Reflection.MethodBase.GetCurrentMethod.GetType basically telling me what is my current executing class, but I wanted to know, which caller class invoke my existing class method. Any help is much appreciated. Bob qing***@gmail.com wrote:
> Is there a way in VB.NET to determine the caller's class name? Why? Code within any given method should not care how or from where it was called. If you need to do things differently within a method based on a given value, pass that value as an argument to the method (you could, of course, pass a reference to the calling object!). Regards, Phill W.
Why choose SQL Express over Access?
Anyway To Compress PDF from .NET? Seeking report component.... AxWebBrowser problems in VS2005 Visual Basic 6.0 X Visual Basic 2005 Express VB.NET & SQL Server Connection Example vb.net continuation Saving changes to a database Setting the correct tabindex A couple of newbie questions |
|||||||||||||||||||||||