Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to store enums using CrossSettings plugin xam.plugin.settings 3.0.1

$
0
0

The following used to work but now throws an error cannot convert from ConnectionMethod to decimal

public static ConnectionMethod connectionMethod
{
get { return AppSettings.GetValueOrDefault(connMethodKey, connMethodDefault); }
set { AppSettings.AddOrUpdateValue(connMethodKey, value); }
}

I understand I need to serialize the value to and from string but I cannot find an example of this and must confess I can't work it out myself.

Could someone show me an example of how this is done?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>