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=

posted @ 2013-04-01 10:57  Predator  阅读(1499)  评论(0编辑  收藏  举报