Results 1 to 3 of 3

Thread: [RESOLVED] [1.0/1.1] Retreive function name

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Resolved [RESOLVED] [1.0/1.1] Retreive function name

    Hi,

    How to retreive function name in the assembly?


    Thanks,
    Popskie

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [1.0/1.1] Retreive function name

    You need the types in the assembly first, then you can get the methods of each type:
    Code:
    System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
    
    foreach (Type typ in asm.GetTypes())
    {
        foreach (System.Reflection.MethodInfo mthd in typ.GetMethods())
        {
            MessageBox.Show(typ.Name + "." + mthd.Name);
        }
    }
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width