J
Jarod
Hi
I have let's say 10 classes and I need a function that will call a method on
them. But this method name is the same in each of this class. For this
method class can be initiated by constructor without params. Is there a
simple way to invoke Delete() function in a given class just by giving it
name ? Other than using reflection ?
Function will look like this:
void deleteSomeThing(string className)
{
// some code that will do : className.Delete();
}
Jarod
I have let's say 10 classes and I need a function that will call a method on
them. But this method name is the same in each of this class. For this
method class can be initiated by constructor without params. Is there a
simple way to invoke Delete() function in a given class just by giving it
name ? Other than using reflection ?
Function will look like this:
void deleteSomeThing(string className)
{
// some code that will do : className.Delete();
}
Jarod