Remove from a string
In this chapter you will learn:
Remove sub string from a string
using System;/*from j a va 2s . c o m*/
class Sample
{
public static void Main()
{
string s = "java2s.com";
s = s.Remove(2, 3);
Console.WriteLine(s);
}
}
The output:
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » String