You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you declare a protected member on a WinRT class, the projection type will directly expose this protected member to all consumers, meaning it is trivial to accidentally do things you shouldn't.
Reproducible example
[default_interface]
runtimeclass Class
{
Class();
protected Int32 MyProperty;
}
Class a;
int b = a.MyProperty();
Expected behavior
A build error saying MyProperty doesn't exist or is protected
Actual behavior
It correctly builds and will actually call implementation::Class::MyProperty.