sdk/dotnet/src/Microsoft.Datasync.Client/Utils/Arguments.cs
/// <summary>
/// Returns if the parameter is not null or whitespace.
/// </summary>
/// <param name="param">The parameter to validate.</param>
/// <param name="paramName">The name of the parameter.</param>
/// <exception cref="ArgumentNullException">if the parameter is <c>null</c>.</exception>
/// <exception cref="ArgumentException">if the parameter comprises of only whitespace.</exception>
Returns if the parameter is not null or whitespace.
Returns if the parameter is not null or whitespace .
public static void IsNotNullOrWhitespace(string param, string paramName)
        {
            IsNotNull(param, paramName);
            if (string.IsNullOrWhiteSpace(param))
            {
                throw new ArgumentException($"'{paramName}' is whitespace", paramName);
            }
        }
public static void IsNotNullOrWhitespace ( string param , string paramName ) { IsNotNull ( param , paramName ) ; if ( string . IsNullOrWhiteSpace ( param ) ) { throw new ArgumentException ( $" ' { paramName } ' is whitespace " , paramName ) ; } }
Returns if the parameter is not null or whitespace.
Returns if the parameter is not null or whitespace .
if the parameter is null
if the parameter is null
if the parameter comprises of only whitespace.
if the parameter comprises of only whitespace .
param
string
The parameter to validate.
The parameter to validate .
paramName
string
The name of the parameter.
The name of the parameter .