jamesmontemagno / SettingsPlugin

Read and Write Settings Plugin for Xamarin and Windows
MIT License
324 stars 80 forks source link

How to create custom keys at runtime? #75

Closed goldmont closed 7 years ago

goldmont commented 7 years ago

Hi,

Does your plugin only work with const strings? In order to create at runtime custom keys made by letters only, I need to declare strings as static readonly but your plugin returns always an empty string. Instead, declaring strings as constants, it works fine. How to solve? Thanks.

jamesmontemagno commented 7 years ago

Any string you want!

jamesmontemagno commented 7 years ago

See: https://github.com/xamarinhq/app-evolve/blob/master/src/XamarinEvolve.DataStore.Mock/Helpers/Settings.cs#L39