V
V
Vasily Vasilyev2017-09-29 21:14:51
C++ / C#
Vasily Vasilyev, 2017-09-29 21:14:51

How to display a list of all class methods in the console?

There is the following sketch. You need to display the names of the class methods in the console.

class Program{
public static void Main(string[] args)
{

}
private static void methodName1(){}
private static void methodName2(){}
private static void methodName3(){}
}

Should output:
$> methodName1, methodName2, methodName3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bashinsky, 2017-09-30
@Basil_Dev

In c# there is a reflection that will help to get this information.
Here is an example just about this
https://msdn.microsoft.com/en-us/library/4d848zkb(...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question