source/R5T.NetStandard.Types/Code/Extensions/StringExtensions.cs
/// <summary>
/// Determines whether the input <paramref name="string"/> begins with the input <paramref name="beginning"/>.
/// </summary>
Determines whether the input  begins with the input .
Determines whether the input begins with the input .
public static bool BeginsWith(this string @string, string beginning)
        {
            if (@string.Length < beginning.Length)
            {
                return false;
            }
            var beginsWith = @string.Substring(0, beginning.Length) == beginning;
            return beginsWith;
        }
public static bool BeginsWith ( this string @string , string beginning ) { if ( @string . Length < beginning . Length ) { return false ; } var beginsWith = @string . Substring ( 0 , beginning . Length ) == beginning ; return beginsWith ; }
Determines whether the input  begins with the input .
Determines whether the input begins with the input .
string
this
beginning
string