Answers for "remove char in string c#"

C#
0

remove character from string C#

// 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
Posted by: Guest on August-17-2021
2

c# remove specific character from string

string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Posted by: Guest on March-01-2020
0

remove control characters from string c#

string input; // this is your input string
string output = new string(input.Where(c => !char.IsControl(c)).ToArray());
Posted by: Guest on August-20-2020
-1

remove string in c#

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);
Posted by: Guest on September-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language