Click to See Complete Forum and Search --> : still messing with reflecting the constructor


Marraco
February 17th, 2009, 12:36 PM
Is there a robust way to get a constructor with string parameter by reflection?

I have no choice, but instantiate a class without knowing if the constructor belongs to it, a base class, or come intermediate class in the inheritance chain.

Marraco
February 17th, 2009, 01:03 PM
Is there a robust way to get a constructor with string parameter by reflection?

I have no choice, but instantiate a class without knowing if the constructor belongs to it, a base class, or come intermediate class in the inheritance chain.I used the .getconstructor method, in a for next, and tried every possible binding flags, but no without result.