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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. plz help

plz help

Scheduled Pinned Locked Moved C#
helpquestion
7 Posts 5 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.
  • N Offline
    N Offline
    nidheeshkayal
    wrote on last edited by
    #1

    i need to list all the methods inside a class. is it possible? plz help

    M D A 3 Replies Last reply
    0
    • N nidheeshkayal

      i need to list all the methods inside a class. is it possible? plz help

      M Offline
      M Offline
      madhusri
      wrote on last edited by
      #2

      nidheeshkayal, this can be done using reflections... You can use the GetMethod() function and specify in it if u need to get all the private methods or public methods Thanks and Regards Madhu -- modified at 4:42 Thursday 2nd March, 2006

      N 1 Reply Last reply
      0
      • N nidheeshkayal

        i need to list all the methods inside a class. is it possible? plz help

        D Offline
        D Offline
        Divyang Mithaiwala
        wrote on last edited by
        #3

        Hello nidheeshkayal, Have you use Object Browser. It is open when double click on any "namespace" in References. Regards, Divyang Mithaiwala.

        N 1 Reply Last reply
        0
        • M madhusri

          nidheeshkayal, this can be done using reflections... You can use the GetMethod() function and specify in it if u need to get all the private methods or public methods Thanks and Regards Madhu -- modified at 4:42 Thursday 2nd March, 2006

          N Offline
          N Offline
          nidheeshkayal
          wrote on last edited by
          #4

          here my input is class name not dll. and plz tel me how can i do it with reflection nidheesh

          V 1 Reply Last reply
          0
          • D Divyang Mithaiwala

            Hello nidheeshkayal, Have you use Object Browser. It is open when double click on any "namespace" in References. Regards, Divyang Mithaiwala.

            N Offline
            N Offline
            nidheeshkayal
            wrote on last edited by
            #5

            hi my problem is there is one list box in my program and a dialog. when i am selecting one class name from the dialog then all methods inside the class should display in to the list box. how can i do this without reflection nidh

            1 Reply Last reply
            0
            • N nidheeshkayal

              here my input is class name not dll. and plz tel me how can i do it with reflection nidheesh

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              You can locate the type in the assembly after loading it. The GetMethods() invoked on the type woudl return all the methods. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/

              1 Reply Last reply
              0
              • N nidheeshkayal

                i need to list all the methods inside a class. is it possible? plz help

                A Offline
                A Offline
                AFSEKI
                wrote on last edited by
                #7

                Use typeof(yourclass).GetMethods(). That's all. ( checkout Type.GetMethods() in MSDN Library )

                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