Interface C++/CLI接口

Interface C++/CLI接口,interface,properties,c++-cli,Interface,Properties,C++ Cli,与以下C#声明(如果存在)等效的C++/CLI语法是什么: 参见示例 interface MyInterface { int MyProperty {get;} } interface class MyInterface { property int MyProperty { int get(); } };

与以下C#声明(如果存在)等效的C++/CLI语法是什么:

参见示例

interface MyInterface
{
    int MyProperty {get;}
}
interface class MyInterface
{
    property int MyProperty 
    {
       int get();
    }
};