I have class like below;
public class PhoneNumbersDto
{
public string code { get; set; }
public int dial { get; set; }
public string mask { get; set; }
public string name { get; set; }
}
And I have Values like below;
{
"code": "TR",
"dial": 90,
"mask": "### ### ## ##",
"name": "Turkey"
},
{
"code": "TM",
"dial": 993,
"mask": "## ######",
"name": "Turkmenistan"
},
{
"code": "TC",
"dial": 1649,
"mask": "### ####",
"name": "Turks & Caicos Islands"
}
I want to create a static const array with TheseClassType but i couldn't initilize it.
Is there a way to create static or const array with multiple values at once.
Thank you