Answers for "Remove the character in a given position of a given string in C#"

C#
5

c# remove character from string at index

string s = "This is string";
s = s.Remove(2, 1);
//Output: Ths is string


string s = "This is string";
s = s.Remove(2, 2);
//Output: Th is string
Posted by: Guest on July-05-2020

Code answers related to "Remove the character in a given position of a given string in C#"

C# Answers by Framework

Browse Popular Code Answers by Language