Answers for "write a c# remove specific a character from string using index"

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
0

remove specific character from string c#

string input = "1, 2, 55";

//This will split the string for everything that is in between ", "
string[] inputSplit = input.Split(", ");

//items in inputSplit = "1" "2" "55"
Posted by: Guest on March-31-2021

Code answers related to "write a c# remove specific a character from string using index"

C# Answers by Framework

Browse Popular Code Answers by Language