source/R5T.NetStandard.Types/Code/Extensions/StringExtensions.cs
/// <summary>
/// Returns the input string, except without the last specified number of characters (a positive integer).
/// </summary>
Returns the input string, except without the last specified number of characters (a positive integer).
Returns the input string except without the last specified number of characters ( a positive integer ) .
public static string ExceptLast(this string @string, int numberOfCharacters)
        {
            var output = @string.Substring(0, @string.Length - numberOfCharacters);
            return output;
        }
public static string ExceptLast ( this string @string , int numberOfCharacters ) { var output = @string . Substring ( 0 , @string . Length - numberOfCharacters ) ; return output ; }
Returns the input string, except without the last specified number of characters (a positive integer).
Returns the input string except without the last specified number of characters ( a positive integer ) .
string
this
numberOfCharacters
int