开发者

Getter only property in C++/CLI interface

开发者 https://www.devze.com 2023-03-17 04:52 出处:网络
What is the equivalent C++/CLI syntax to the follow开发者_运维技巧ing C# declaration (if such exists):

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

精彩评论

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