I have a dictionary and I need to change the dictionary on c# model.How to do it?
var number = new Dictionary<string, int>
{
{"One", 1},
{"Two", 2},
{"Three", 3}
};
Model:
public class Number
{
public double One{ get; set; }
public double Two { get; set; }
public double Three { get; set; }
}