How to remove comma separated value from a string?

后端 未结 10 1900
你的背包
你的背包 2021-01-03 00:13

I want to remove a comma separated value from the string..

suppose I have a string like this

string x=\"r, v, l, m\"

and i want to

10条回答
  •  遥遥无期
    2021-01-03 01:02

    Something like this?

    string input = "r,v,l,m";
    string output = String.Join(",", input.Split(',').Where(YourLogic));
    
    bool YourLogic(string x)
    {
        return true;
    }
    

提交回复
热议问题