src/packages/EmbedIO/Utilities/StringExtensions.cs
/// <summary>Retrieves a substring from this instance, with leading and trailing white-space characters removed.
/// The substring starts at a specified character position and continues to the end of the string.</summary>
/// <param name="this">The <see cref="string"/> on which this method is called.</param>
/// <param name="startIndex">The zero-based starting character position of the substring to retrieve.</param>
/// <returns>A string that is equivalent to the substring that begins at <paramref name="startIndex"/>
/// in <paramref name="this"/>, minus any leading and/or trailing white-space characters.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <para><paramref name="startIndex"/> is less than 0.</para>
/// <para>- or -</para>
/// <para><paramref name="startIndex"/> is larger then the length of <paramref name="this"/>.</para>
/// </exception>
Retrieves a substring from this instance, with leading and trailing white-space characters removed.
The substring starts at a specified character position and continues to the end of the string.
Retrieves a substring from this instance with leading and trailing white - space characters removed . The substring starts at a specified character position and continues to the end of the string .
public static string TrimmedSubstring(this string @this, int startIndex)
        {
            if (startIndex < 0)
                throw new ArgumentOutOfRangeException(nameof(startIndex), "The starting index of a substring must be non-negative.");
            if (startIndex > @this.Length)
                throw new ArgumentOutOfRangeException(nameof(startIndex), "The starting index of a substring cannot be larger than the string's length.");
            return TrimmedSubstringInternal(@this, startIndex, @this.Length - startIndex);
        }
public static string TrimmedSubstring ( this string @this , int startIndex ) { if ( startIndex < 0 ) throw new ArgumentOutOfRangeException ( nameof ( startIndex ) , " " ) ; if ( startIndex > @this . Length ) throw new ArgumentOutOfRangeException ( nameof ( startIndex ) , " " ) ; return TrimmedSubstringInternal ( @this , startIndex , @this . Length - startIndex ) ; }
Retrieves a substring from this instance, with leading and trailing white-space characters removed.
Retrieves a substring from this instance with leading and trailing white - space characters removed .
A string that is equivalent to the substring that begins at
in , minus any leading and/or trailing white-space characters.
A string that is equivalent to the substring that begins at in minus any leading and / or trailing white - space characters .
None
None
string
this
startIndex
int
The zero-based starting character position of the substring to retrieve.
The zero - based starting character position of the substring to retrieve .
this
The  on which this method is called.
The on which this method is called .