C# remove single quotes from string

string inputStr = "'some string'";
string outputStr = inputStr.Trim(new char[]{(char)39});

 

posted @ 2020-05-27 20:59  FredGrit  阅读(121)  评论(0编辑  收藏  举报