using System.Collections.Generic;
public static void Main()
List<string> temparray1 = new List<string>(){"A"};
List<string> temparray2 = new List<string>(){"B","C"};
List<string> temparray3 = new List<string>(){"D","E","F"};
int count2 = temparray1.Count() + temparray2.Count() + temparray3.Count();
foreach(string item1 in temparray1) {
temp1 = Int32.TryParse(item1, out tempInt) ? item1 : "'"+item1+"'";
foreach(string item2 in temparray2) {
temp2 = Int32.TryParse(item2, out tempInt) ? item2 : "'"+item2+"'";
foreach(string item3 in temparray3) {
temp3 = Int32.TryParse(item3, out tempInt) ? item3 : "'"+item3+"'";
temp += temp1 + "," + temp2 + "," + temp3;
temp += temp1 + "," + temp2 + "," + temp3 + ";";