Run random class method

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

I have a class with couple of methods.
I want to run one of them randomly. Is this possible?
 
Nikolay Petrov said:
I have a class with couple of methods.
I want to run one of them randomly. Is this possible?

Take a look at the 'Type' class. This class allows you to get the names of
methods and to invoke methods on an object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top