Answers for "remove \ in all string c#"

C#
3

remove all text after string c#

string input = "text?here";
int index = input.LastIndexOf("?"); // Character to remove "?"
if (index > 0)
    input = input.Substring(0, index); // This will remove all text after character ?
Posted by: Guest on September-03-2020
-1

remove string in c#

string myString = "[email protected]";
// 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

Code answers related to "remove \ in all string c#"

C# Answers by Framework

Browse Popular Code Answers by Language