In the c# String TrimStart(System.Char[]) method removes from the current string all leading characters that are in the trimChars parameter.
Syntax
public string TrimStart(params Char[] ch)
Parameter
ch: it is a char array type parameter.
Return
It returns a string
C# String TrimStart() Method Example
using System;
public class Program
{
public static void Main()
{
string str = "Hello FindAndSolve";
char[] ch = {'H'};
string str1 = str.TrimStart(ch);
Console.WriteLine(str1);
}
}
Output
ello FindAndSolve