injection into Activator.CreateInstance ???

N

nguyen.panther

Hi,
Are there any solution for me to perform dependency injection in
Activator.CreateInstance(myType) ???
Please help me.
 
M

Marc Gravell

What is currently happening? What *exactly* are you trying to solve?
It /sounds/ like you might be looking for AppDomain.TypeResolve or
AppDomain.AssemblyResolve...

Marc
 
H

honguyen

My web project using ObjectDataSource that create Business Logic
Controller class in my BLL proj, I have a ControllerContainer class
for retrieving existed controller in cache or adding new one to cache.
I want to perform injection like the TypeDescriptor and
TypeDescriptionProvider perform.
But it don't work with this case. I tried reflection to explore
objectdatasource 's code, and i finded out that it used
Activator.CreateInstance.
So i want to perform injection with this case.
 

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

Top