111,094
社区成员




string s = "hello world!";
s.replace(3, 1, 1, 'L');
string str = " hello word";
//StringBuilder sb = new StringBuilder(str);
//sb.Replace("l", "L", 3, 1);
//str = sb.ToString();
str = str.Remove(3, 1);
str = str.Insert(3, "L");
string s = "hello world!";
char[] ch = s.ToCharArray();
ch[3] = 'L';
s = new string(ch);
string s = "hello world!";
fixed (char* sf = s) sf[3] = 'L';
string s = "hello world!";
fixed (char* sf = s) *(sf + 3) = 'L';
string s = "hello world!"; ;
s = s.Remove(2, 1);
s = s.Insert(2, "L");
string s = "hello world!";
StringBuilder sb = new StringBuilder(s);
sb.Replace("l", "L", 3, 1);
s = sb.ToString();