Reflections
-
I am coding a "Trace" object. This object will report the "method name" of the method within the class that the code is currently executing. I do not want to have to type in the method name each time the trace object is called. I simply want to be able to pass my object some sort of reflections.method.name.Tostring() call. This methodology can then be transported everywhere in all the methods without having to worry about misspelling or renaming the method down the road. Eric "Moose Man"
-
I am coding a "Trace" object. This object will report the "method name" of the method within the class that the code is currently executing. I do not want to have to type in the method name each time the trace object is called. I simply want to be able to pass my object some sort of reflections.method.name.Tostring() call. This methodology can then be transported everywhere in all the methods without having to worry about misspelling or renaming the method down the road. Eric "Moose Man"
eunderwo00 wrote:
I am coding a "Trace" object
"Well done"
using System.Beer;
-
I am coding a "Trace" object. This object will report the "method name" of the method within the class that the code is currently executing. I do not want to have to type in the method name each time the trace object is called. I simply want to be able to pass my object some sort of reflections.method.name.Tostring() call. This methodology can then be transported everywhere in all the methods without having to worry about misspelling or renaming the method down the road. Eric "Moose Man"
I did something similar a couple of years ago: http://blogs.wdevs.com/ColinAngusMackay/archive/2004/09/19/531.aspx[^]
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
eunderwo00 wrote:
I am coding a "Trace" object
"Well done"
using System.Beer;
Jon Hulatt wrote:
using System.Beer
Right now on my desk, using System.Beer.Becks; :-D