Returns a new string with characters removed starting at a position.
Syntax
str.Remove(startIndex, count?)Example
Enter values below to update the example in real time.
string→result→Remove→Console→WriteLine→string text = "Hello, World!";
string result = text.Remove(5, 2);
Console.WriteLine(result); // "HelloWorld!"