Remove(); function in C#
It is used to utilize to get another string in the wake of expelling every one of the characters from the determined starting Index until given length. In the event that length isn't determined, it expels every one of the characters after starting Index.
Example
Program
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1 = "Wellcome";
string str2 = str1.Remove(4);
Console.WriteLine(str2);
Console.ReadKey();
}
}
}
Output
Well
It is used to utilize to get another string in the wake of expelling every one of the characters from the determined starting Index until given length. In the event that length isn't determined, it expels every one of the characters after starting Index.
Example
Program
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1 = "Wellcome";
string str2 = str1.Remove(4);
Console.WriteLine(str2);
Console.ReadKey();
}
}
}
Output
Well