using System;
namespace MyCSharpLearning
{
class TrimMethod
{
public static void Main(string[] args)
{
string txt = Console.ReadLine();
char[] SpaceRemove = { ' ' };
txt = txt.Trim(SpaceRemove);
Console.WriteLine("Your result is: {0}", txt);
Console.ReadLine();
}
}
}
不工作..帮助!!!!!!!