Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Reflections

Reflections

Scheduled Pinned Locked Moved C#
debugging
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eunderwo00
    wrote on last edited by
    #1

    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"

    J C 2 Replies Last reply
    0
    • E eunderwo00

      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"

      J Offline
      J Offline
      Jon Hulatt
      wrote on last edited by
      #2

      eunderwo00 wrote:

      I am coding a "Trace" object

      "Well done"

      using System.Beer;

      P 1 Reply Last reply
      0
      • E eunderwo00

        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"

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J Jon Hulatt

          eunderwo00 wrote:

          I am coding a "Trace" object

          "Well done"

          using System.Beer;

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Jon Hulatt wrote:

          using System.Beer

          Right now on my desk, using System.Beer.Becks; :-D

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups