remove specific character from string csharp
Code Example - remove specific character from string csharp
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"
remove character from string csharp
// our string
string myString = "test@gmail.com";
// lets remove the @ symbol
// here we replace our "@" in our string to an empty string
string newString = myString.Replace("@", string.empty);
Console.Writeline(newString);
// output should look like this: testgmail.com