|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Who is my calling object?Hi everyone,
I am implementing I method where it would be convenient to get the instance of the object that is calling me. I know I can get the calling method using the StackFrame class, and I can get the calling assembly, but what about the instance of the object which implements the calling method? Thanks, Bob L. "Bob L." <nospam.info1@libertyfamily.net> wrote in message Have the calling object pass itself as a parameter. Believe me when I tell news:eWXwcGq8EHA.3988@TK2MSFTNGP10.phx.gbl... > Hi everyone, > > I am implementing I method where it would be convenient to get the > instance > of the object that is calling me. I know I can get the calling method > using > the StackFrame class, and I can get the calling assembly, but what about > the > instance of the object which implements the calling method? you that you don't want to limit yourself to operating on the calling object only. There may come a day when some intermediate object will be introduced. John Saunders
Other interesting topics
general question regarding when to abstract vs. interface
Proper place for custom CONFIG file Exporting registry key to a reg file? sorting columns of DataSet String conversion from an Object in VB.NET Enum conversion from an Object in VB.NET installing .net framework on XP Pro Silent install of .Net Framework 1.1 Error 1937 on VS installation KISS Tutorials |
|||||||||||||||||||||||