If I have the following code:
MyType<int> anInstance = new MyType<int>();
Type type = anInstance.GetType();
How can I find out which type argument(s) "anInstance" was instantiated with, by looking at the type variable? Is it possible?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…