I'm doing a program and I want to do a Reflection, but for this, I need an Object of the Type class, right? to use the .GetProperties() method... So I tryed this:
Type typeName = simObjects.getType();
But the .GetType() is returning "System.__COMObject". And this is not helpfull.
The same happens with .typeof(). I search and found another code, this one:
Type typeName = (Type)Microsoft.VisualBasic.Information.TypeName(simObjects);
But this method return a String, and I need it in System.Type, Can any genious please help me?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…