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. how to get info about the interface using reflection

how to get info about the interface using reflection

Scheduled Pinned Locked Moved C#
csharpdotnethelptutorialquestion
6 Posts 2 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.
  • K Offline
    K Offline
    karthick n mca
    wrote on last edited by
    #1

    rite now am working on .net framework 2.0 am in need to get the information about the interface at the run time. how can i achive this by using reflection.. please help me its urgent Karthick.N -- modified at 9:05 Wednesday 3rd October, 2007

    P 1 Reply Last reply
    0
    • K karthick n mca

      rite now am working on .net framework 2.0 am in need to get the information about the interface at the run time. how can i achive this by using reflection.. please help me its urgent Karthick.N -- modified at 9:05 Wednesday 3rd October, 2007

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      karthick.n.mca wrote:

      please help me its urgent

      It's always urgent. Just once, I'd like to see somebody say "No hurry. I'm just shooting the breeze." Perhaps if it's urgent, you would actually like to supply some meaningful information. What interface? The UI? IEnumerable? Flushing the toilet?

      Deja View - the feeling that you've seen this post before.

      K 1 Reply Last reply
      0
      • P Pete OHanlon

        karthick.n.mca wrote:

        please help me its urgent

        It's always urgent. Just once, I'd like to see somebody say "No hurry. I'm just shooting the breeze." Perhaps if it's urgent, you would actually like to supply some meaningful information. What interface? The UI? IEnumerable? Flushing the toilet?

        Deja View - the feeling that you've seen this post before.

        K Offline
        K Offline
        karthick n mca
        wrote on last edited by
        #3

        sorry dude.. I want to get the information like what are methods are associated and the method names at run time...

        P 1 Reply Last reply
        0
        • K karthick n mca

          sorry dude.. I want to get the information like what are methods are associated and the method names at run time...

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          So you're asking how to get the method information for a particular type?

          MethodInfo[] methods = this.GetType().GetMethods();
          

          From here you can find out information about method names, scope etc...

          Deja View - the feeling that you've seen this post before.

          K 1 Reply Last reply
          0
          • P Pete OHanlon

            So you're asking how to get the method information for a particular type?

            MethodInfo[] methods = this.GetType().GetMethods();
            

            From here you can find out information about method names, scope etc...

            Deja View - the feeling that you've seen this post before.

            K Offline
            K Offline
            karthick n mca
            wrote on last edited by
            #5

            thank q...:-D

            P 1 Reply Last reply
            0
            • K karthick n mca

              thank q...:-D

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              karthick.n.mca wrote:

              thank q...

              No problem.

              Deja View - the feeling that you've seen this post before.

              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