- var array = new int[] { 1, 2, 3 };
- string formatString = "Element 1: {0}, Element 2: {1}, Element 3: {2}";
- string result = string.Format(formatString, array[0], array[1], array[2]);
- Console.WriteLine(result);
-
- result = string.Format(config.Expression, dlist.ToArray());