Sunday, March 29, 2015

Get nth number of sets from user in proper set format in C#

No difference.



List<List<string>> sets = new List<List<string>>();

for (int rowCount = 0; rowCount < 100; rowCount += 10)
{
List<string> newRow = new List<string>();
sets.Add(newRow);
for (int colCount = 1; colCount <= 10; colCount++)
{
newRow.Add((rowCount + colCount).ToString());
}
}


List<string> output = sets[3].ToList();





jdweng


No comments:

Post a Comment