remove a character from a string c# code example
Example 1: c# string remove
string myString = "Hello Grepper Developers";
string newStr = myString.Remove(5);
string newStr2 = myString.Remove(5, 8);
Example 2: c# remove specific character from string
string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Example 3: remove specific character from string c#
string input = "1, 2, 55";
string[] inputSplit = input.Split(", ");
Example 4: c# remove character from string at index
remove char from an index of string