What's the C++/CLI equivalent of C#'s readonly
keyword?
Specifically, how do you write a public or protected member of a C++/CLI class such that it is readonly
when referenced from C#?
What's the C++/CLI equivalent of C#'s readonly
keyword?
Specifically, how do you write a public or protected member of a C++/CLI class such that it is readonly
when referenced from C#?
I just found out (thanks to Literal field versus constant variable in C++/CLI) that
const
is literal
in C++/CLI, andreadonly
is initonly
in C++/CLI