This is what I did, but it looks messy, is there a way to make the class a list class directly from the class ?
List<MainSettings> lMainsettings = new List<MainSettings>();
lMainsettings.Add(xx);
foreach (var item in lMainsettings)
{
if (item.Country==null)
{
xx.Country = "Canada";
}else Country.PlaceholderText = item.Country;
await _Settings.CreateTheSettingsFile("mySettings.xml", xx);
Country.PlaceholderText = item.Country;
}
No comments:
Post a Comment