Udostępnij za pośrednictwem


Tip of the day: Using Constants in WinRT

This tip comes courtesy of a question asked on an internal discussion list. Deon from the C++ team provided the answer. WinRT does not support constants. This means you cannot have code such as the following in C++ /CX: public ref class FooClass sealed { public: const int FooValue = 42; } How does one [...]