I don't think the developer said I don't know, but there's an overload inside that doesn't know how many developers know!
As you can see, I can remove the specified character before and after the string, as long as I apply in char[], instead of just removing the space, why should I mention it this time because the former
A few days when using ASP docking. NET, there is a Join method in ASP, but it is not like C # String.Join (",") method can remove the tail ",", such as
Array {* * *}, after join in ASP will become "a", and C # will become "" ", this time when the ASP passed, in C # can use trim to remove
Tail of the "," out.
var"1,2,3,"; var r = s.Trim(newchar‘,‘ }); Console.WriteLine(r); Console.Read();
All right, that's all, no technical content, the point is digging a dig, maybe useful to you ~
Dig for a less common trim overload