Answers for "c# remove substring from end of string"

C#
0

C# remove substring

int begin = myString.IndexOf('(');
int end = myString.IndexOf('"');
string altered = myString.Remove(begin + 1, end - begin - 1);
Posted by: Guest on January-27-2022
-1

remove substring from string c#

string hello = "Hello Word";
string result = hello.Replace("lo Wo","");
Posted by: Guest on August-11-2021

Code answers related to "c# remove substring from end of string"

C# Answers by Framework

Browse Popular Code Answers by Language