what i want to do is to automatically create some object.
In Java, class can be pass as parameter, for example
Class A{
}
Object createObjectBy(class clazz){
// .. do construction work here
}
when using it, just ---> createObjectBy(A.class)
it is benefit for a lot of things.
so, how can i do similar thing in C#????
Usage:
Or you could simply use
Activator.CreateInstancedirectly 🙂