开发者

Getter only property in C++/CLI interface

What is the equivalent C++/CLI syntax to the follow开发者_运维技巧ing C# declaration (if such exists):

interface MyInterface
{
    int MyProperty {get;}
}


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

See example here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜