Mega Code Archive

 
Categories / C# Book / 02 Essential Types
 

0239 Remove from a string

To remove characters from a string: using System; class Sample { public static void Main() { string s = "rntsoft.com"; s = s.Remove(2, 3); Console.WriteLine(s); } }