我有一个这样定义的接口(因为我想不出一种方法来为我从 DB 查询调用中检索到的内容设置属性),
interface class IData
{
public:
void Set(int i);
int Get();
};
我有一个像这样定义的通用类
generic<typename T, typename U> where T:IsomeInterface public ref class MyClass{};
我想在上面的 MyClass 声明中添加“where U:IData”,但我现在卡住了。