我想要做的是从届会获得反对数据。
下面的法典应当阐明:
//Type of object which i need to get in runtime
Type someUnknownType = typeof(someObject);
int id = 1; // for example
// here i got error cannot resolved someUnknownType
ISession.Get<someUnknownType>(id);
我如何能够这样做?
Edit:
someObject
is instance variable.