Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
List<person> Persons = new List<person>();
person newPerson = new person();
for (int i = 0; i <= 6; i++)
{
for (int j = 0; j <= i; j++)
{
newPerson.cz[int.Parse(Convert.ToString(i) + Convert.ToString(j))] = "Set the value for each field here";
}
}
Persons.Add(newPerson);
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Join the community of 500,000 technology professionals and ask your questions.