public string Replace(
   char oldChar,
   char newChar
);

解决方案 »

  1.   

    String s = "abcdefg";
    System.Console.WriteLine(s);
    s = s.Replace('c', 't');
    System.Console.WriteLine(s);
      

  2.   

    //1 pasword    = MyDate.Format("u",null);
    //2 pasword    = pasword.Replace("-","j");
    但第二行出错,CS1502: The best overloaded method match for 'string.Replace(char, char)' has some invalid arguments
      

  3.   

    老大,是字符型耶 char 和 String 在符号上是有区别的
    是用 ‘’,而不是 “”
      

  4.   

    谢了,我钢材自己也发现了,好象最近变得比较傻,我的OICQ:1925292,希望和你联系上,能一
    起进步