By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,409 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

do is possible to get the path of the method that is begin executed?

P: n/a
for example:

Namespace MyNamespace
Public Class MyClass
Public Sub mySub()

Console.WriteLine("Executing..." & MyCurrentSub())
' The MyCurrentSub is just an example of a pseudocode, that will
be replaced with the real function name
' or whatever I need to get the current Method, the output will
be: "Executing... MyNamespace.MyClass.mySub"

End Sub
End Class
End Namespace
Thanks
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
David <ac*****@gmail.com> wrote:
for example:

Namespace MyNamespace
Public Class MyClass
Public Sub mySub()

Console.WriteLine("Executing..." & MyCurrentSub())
' The MyCurrentSub is just an example of a pseudocode, that will
be replaced with the real function name
' or whatever I need to get the current Method, the output will
be: "Executing... MyNamespace.MyClass.mySub"

End Sub
End Class
End Namespace


See MethodBase.GetCurrentMethod().

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2

P: n/a
Thanks!!
"Jon Skeet [C# MVP]" <sk***@pobox.com> escribió en el mensaje
news:MP************************@msnews.microsoft.c om...
David <ac*****@gmail.com> wrote:
for example:

Namespace MyNamespace
Public Class MyClass
Public Sub mySub()

Console.WriteLine("Executing..." & MyCurrentSub())
' The MyCurrentSub is just an example of a pseudocode, that will be replaced with the real function name
' or whatever I need to get the current Method, the output will be: "Executing... MyNamespace.MyClass.mySub"

End Sub
End Class
End Namespace


See MethodBase.GetCurrentMethod().

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.