dotnet / android-samples

A collection of .NET for Android sample projects
https://dotnet.microsoft.com/apps/mobile
MIT License
2.21k stars 4.05k forks source link

Expose private nested types that are exposed in public API. #316

Closed jpobst closed 4 years ago

jpobst commented 4 years ago

In Xamarin.Android we fixed an issue where private nested classes were getting unintentionally bound. However, thanks to Java's lax rules regarding visibility, you can reference those classes in public API. C# does not allow you to do this, so you need to expose the class as public so it will be bound and thus usable.

This updates 2 samples that were relying on exposing private nested classes to explicitly mark then as public via metadata.