Essential Types C# Book

SubString returns the substring from the current.
Specify only the start position
using System;
class Sample
{
public static void Main()
{
string s = "rntsoft.com";
Console.WriteLine(s.Substring(2));
}
}
The output:
tsoft.com
Specify both the start and end
using System;
class Sample
{
public static void Main()
{
string s = "rntsoft.com";
Console.WriteLine(s.Substring(2, 3));
}
}
The output:
tso