Remove last char from string in c#
Method One:
stringCulomns = stringCulomns .Remove(stringCulomns .Length - 1);
Method Two:
List checkedColumns = new List();
checkedColumns.Add(objItem.ColumnNames);
queryCulomns += string.Join(",", checkedColumns);
stringCulomns = stringCulomns .Remove(stringCulomns .Length - 1);
Method Two:
List
checkedColumns.Add(objItem.ColumnNames);
queryCulomns += string.Join(",", checkedColumns);
No comments: