Reflection Question (?)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Largo SQL Tools

    #1

    Reflection Question (?)

    I would like some way to determine every place in my solution where a given
    method of a given class is called (not defined). Preferably I would like to
    know the source file name and line number of each method call. Is this
    possible using reflection or some other method?

    Thanks very much.

    J.R.
    Largo SQL Tools
    The Finest Collection of SQL Tools Available




  • Randy A. Ynchausti

    #2
    Re: Reflection Question (?)

    J.R.,
    [color=blue]
    > I would like some way to determine every place in my solution where a[/color]
    given[color=blue]
    > method of a given class is called (not defined). Preferably I would like[/color]
    to[color=blue]
    > know the source file name and line number of each method call. Is this
    > possible using reflection or some other method?[/color]

    Is there a requirement (of your project) that leads you to want to use
    reflection?

    If there is not a hard and fast requirement, I would recommend that you do a
    simple text search through the source files of the project/solution to find
    the source file name and line number.

    Hope that helps.

    Regards,

    Randy


    Comment

    • Yan-Hong Huang[MSFT]

      #3
      RE: Reflection Question (?)

      Hello Largo,

      Thanks for the group.

      I have replied your question in dotnet.framewor k group. If you have time,
      please check it there.

      Best regards,
      Yanhong Huang
      Microsoft Online Partner Support

      Get Secure! - www.microsoft.com/security
      This posting is provided "AS IS" with no warranties, and confers no rights.

      --------------------
      !From: "Largo SQL Tools" <nospam@yahoo.c om>
      !Subject: Reflection Question (?)
      !Date: Fri, 5 Sep 2003 21:41:56 -0400
      !Lines: 14
      !X-Priority: 3
      !X-MSMail-Priority: Normal
      !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
      !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
      !Message-ID: <OVG4PgBdDHA.26 40@TK2MSFTNGP09 .phx.gbl>
      !Newsgroups:
      microsoft.publi c.dotnet.framew ork,microsoft.p ublic.dotnet.la nguages.csharp
      !NNTP-Posting-Host: cblmdm65-221-37-137.buckeye-express.com 65.221.37.137
      !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
      !Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1827 82
      microsoft.publi c.dotnet.framew ork:53088
      !X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
      !
      !I would like some way to determine every place in my solution where a given
      !method of a given class is called (not defined). Preferably I would like
      to
      !know the source file name and line number of each method call. Is this
      !possible using reflection or some other method?
      !
      !Thanks very much.
      !
      !J.R.
      !Largo SQL Tools
      !The Finest Collection of SQL Tools Available
      !http://www.largosqltools.com
      !
      !
      !
      !

      Comment

      Working...