Insert
Remove
Replace
指定した位置から文字を削除します。
str.Remove(startIndex, count?)
下記の値を入力するとサンプルに即時反映されます。
string
result
Console
WriteLine
string text = "Hello, World!"; string result = text.Remove(5, 2); Console.WriteLine(result); // "HelloWorld!"