Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getter only property in C++/CLI interface

What is the equivalent C++/CLI syntax to the following C# declaration (if such exists):

interface MyInterface
{
    int MyProperty {get;}
}
like image 365
Ohad Schneider Avatar asked Jul 05 '11 14:07

Ohad Schneider


1 Answers

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

See example here

like image 143
Armen Tsirunyan Avatar answered Sep 27 '22 16:09

Armen Tsirunyan