Xamarin Plugin Settings Will Now Error When Given Type Arguments

JCoxJCox USMember

Today, I started getting errors on statements that were part of the default Xamarin Forms app in the Helper/Settings.cs class.

Statements like: AppSettings.GetValueOrDefault<string>(AuthTokenKey, AuthTokenDefault); gave the error:
"The non-generic method 'ISettings.GetValueOrDefault(string, decimal, string)' cannot be used with type arguments"
After a few hours of research I found that the new way of making that statement removes the type argument, like this: AppSettings.GetValueOrDefault(AuthTokenKey, AuthTokenDefault); as is shown in the current Readme file.

That change is probably related to This Notice.
Xamarin Plugins Settings was recently updated to 3.0.1.


Sign In or Register to comment.