0

have been searching around for this but it's a little hard to describe so i'll just ask in here. Is it possible to call void as a string?

I think an example would describe it better:

//list of voids in the other class
string[] voids = {"expand()", "show()", "yolo()"};

anotherclass class = new anotherclass();

//call to the void named expand inside the other class
class.voids[0]; //??????
user69969
  • 341
  • 2
  • 10

1 Answers1

2

Why use string array, use function pointer array!

Two good links:

link1 link2

Binarian
  • 12,296
  • 8
  • 53
  • 84