Base solution for your next web application
Open Closed

Extend SettingManager #766


User avatar
0
ioannes created

Hi Halil,

What is the best way of deserializing String returned from SettingManager in ApplicationService.

I have a multidimensional setting just like this "[[1, 2],[3, 4,],[5, 6],[7, 8]]"

Currently I am using NewtonsoftJson.

var z = JsonConvert.DeserializeObject<Double[][]>(await SettingManager.GetSettingValueAsync("MaxDigitalSheetCounts"));

Is it possible to extend SettingManager to return Array from String?

Thank you Ivan


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Newtonsoft.Json seems fine. You can write your own extension methods to make it easier.