✅ Using Activator.CreateInstance() when the constructor has arguments - not finding constructor
I'm trying to create a class instance dynamically using
My object looks like this:
And I'm creating it like this:
However, when it hits the
Any idea what I'm doing wrong here?
Activator.CreateInstance(), and it's crashing and not finding the constructor.My object looks like this:
And I'm creating it like this:
However, when it hits the
CreateInstance() line, an exception occurs:Any idea what I'm doing wrong here?