Type.InvokeClass vs. InvokeMethod...

  • Thread starter Thread starter tascien
  • Start date Start date
T

tascien

I think invoke method is good. but it is not 'great'... I need a way to
invoke the class...

ex:

t = getType(myClass)
t.InvokeMethod(....)

That is if i don't know the method, but I know the class... what if i
don't even know the class...

ex:

t = getType("ClassName") '<-- ClassName is a class in this project.
t.InvokeMethod(....)

is that possible?
 
tascien said:
I think invoke method is good. but it is not 'great'... I need a way to
invoke the class...

There's no such concept as "invoking" a class. What exactly do you
mean?
ex:

t = getType(myClass)
t.InvokeMethod(....)

That is if i don't know the method, but I know the class...

Then what would you want to be invoked?
what if i don't even know the class...

ex:

t = getType("ClassName") '<-- ClassName is a class in this project.
t.InvokeMethod(....)

is that possible?

I think you're interested in Type.GetType here.
 
Back
Top