Trims the start. - CSharp System

CSharp examples for System:String Strip

Description

Trims the start.

Demo Code


using System.Text.RegularExpressions;
using System.Globalization;
using System;// ww  w  .j av  a2s  .c o m

public class Main{
        /// <summary>
        /// Trims the start.
        /// </summary>
        /// <param name="str">The string.</param>
        /// <param name="c">The c.</param>
        /// <returns>System.String.</returns>
        public static string TrimStart(string str, char c)
        {
            return str.TrimStart(c);
        }
}

Related Tutorials