mvvmlight
mvvmlight copied to clipboard
Crash when using GetRecyclerAdapter extension method only when building on Mac.
Hello,
I noticed we got a crash when using the extension method "GetRecyclerAdapter" of https://www.nuget.org/packages/MvvmLightAndroidSupport/ when building app on Mac only.
Here the few lines that cause de crash :
var adapter = ViewModel.SettingsIntemViewModels.ToList().GetRecyclerAdapter(BindViewHolderDelegate, CreateViewHolder);
Here is a small tutorial I followed : http://www.blogaboutxamarin.com/using-the-mvvm-light-observablerecyleradapter-with-the-xamarin-android-recylerview/
We use the last version of Visual Studio for Mac and compile in Android 8.0 Oreo. Unfortunately, I got no exception so I can't see what's wrong.
It seems it when is using generic types. I tried to copy / past your method and test with / without generic types and when I use them, it crashes.