我想做的是从会话中获取对象数据。
下面的代码应该清楚所有:
//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);
我怎样才能做到这一点?
编辑:
someObject
是实例变量。