Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 858685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:34:31+00:00 2026-05-15T08:34:31+00:00

In a method, I want to call a shared function which its name came

  • 0

In a method, I want to call a shared function which its name came as a parameter.

For example:

private shared function func1(byval func2 as string)
 'call func2
end function

How can i do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:34:32+00:00Added an answer on May 15, 2026 at 8:34 am

    You can use reflection to find the class and the method.

    Example in C#:

    namespace TestProgram {
    
      public static class TestClass {
    
        public static void Test() {
          Console.WriteLine("Success!");
        }
    
      }
    
      class Program {
    
        public static void CallMethod(string name) {
          int pos = name.LastIndexOf('.');
          string className = name.Substring(0, pos);
          string methodName = name.Substring(pos + 1);
          Type.GetType(className).GetMethod(methodName).Invoke(null, null);
        }
    
        static void Main() {
          CallMethod("TestProgram.TestClass.Test");
        }
    
      }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my app.config I want to set 3 tracing levels (switches?): verbose, warning and
I have created an inherited class StorageMedium from a base I called DataTypes. StorageMedium
I have a quick question regarding the use of typedefs for lengthy templates. The
I have multiple classes that are quite different in their behavior, but at the
So I implemented my own form of Enum static classes so I can associate
I am creating a new boost::thread using boost::bind , and storing it in a
I would like to add a button to my website so when people click
One of the theoretical benefits from working with Node.js is the possibility to share
I have a Class the runs a process by itself Pseudo Class class MyClass
I like solving algorithm problems on TopCoder site. I can implement most of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.