The input in my case is a line with a list of items separated by a comma
Input:
var input = "123,456,789";
Expected Result (row):
"'123','456','789'"
I am looking for a solution on VB.net, but I am not very familiar with it. So, I tried this in C #. Not sure what I am missing.
My attempt:
var input = "123,456,789";
var temp = input.Split(new Char[] { ',' });
Array.ForEach(temp, a => a = "'" + a + "'");
Console.WriteLine(String.Join(",",temp));
Actual output:
"123,456,789"
Any help in financing the solution at vb.net is greatly appreciated :)
Reddy source
share