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#????
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…