Software Development Network>> Visual C#>> Delete substring in string giving that substring
string _str_helloworld = "Hello World";
_str_helloworld.Remove(startindex,lenght)
This should do the trick.
_str_helloworld .Replace("ello w","");
Delete substring in string giving that substring
feby
string _str_helloworld = "Hello World";
_str_helloworld.Remove(startindex,lenght)
This should do the trick.
ayya
then you could use
_str_helloworld .Replace("ello w","");
dwj
something like could do
string hello = "Hello Word";
string result = hello.Replace("lo Wo","");
Hope this will help