public static string Join(string separator, params obj[] array) { // } object[] array = {"Hello", "Geeks", 12345, 786}; string s1 = string.Join(", ", array);