String中Replace函数的用法
string names = "ganqufnu";
if ( names.Contains("nu"))
{
Console.Write("yes");
}
private static string msg;
public static string Msg
{
get { return TestMain.msg; }
set { TestMain.msg = value; }
}
string path = @"/Main/Src/Bin/Exe";
path=path.Replace("/","\\");//注意必须加上path=