ThrowHelper
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
namespace Renci.SshNet.Common
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
internal static class ThrowHelper
{
[System.Runtime.CompilerServices.NullableContext(1)]
public static void ThrowObjectDisposedIf(bool condition, object instance)
{
if (condition)
<ThrowObjectDisposedIf>g__Throw|0_0(instance);
}
public static void ThrowIfNull([System.Diagnostics.CodeAnalysis.NotNull] object argument, [System.Runtime.CompilerServices.CallerArgumentExpression("argument")] string paramName = null)
{
if (argument == null)
<ThrowIfNull>g__Throw|1_0(paramName);
}
public static void ThrowIfNullOrWhiteSpace([System.Diagnostics.CodeAnalysis.NotNull] string argument, [System.Runtime.CompilerServices.CallerArgumentExpression("argument")] string paramName = null)
{
if (string.IsNullOrWhiteSpace(argument))
<ThrowIfNullOrWhiteSpace>g__Throw|2_0(argument, paramName);
}
public static void ThrowIfNullOrEmpty([System.Diagnostics.CodeAnalysis.NotNull] string argument, [System.Runtime.CompilerServices.CallerArgumentExpression("argument")] string paramName = null)
{
if (string.IsNullOrEmpty(argument))
<ThrowIfNullOrEmpty>g__Throw|3_0(argument, paramName);
}
}
}