📜  c# remove - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:47.881000             🧑  作者: Mango

代码示例1
//using System;
string myString = "Hello Grepper Developers";

//Removing all characters starting from a position
string newStr = myString.Remove(5);
    //Output: Hello

//Removes a specified number of characters after starting from a position
string newStr2 = myString.Remove(5, 8);
    //Output: Hello Developers