ThrowHelper static class ThrowHelper Documentation Code public static void ThrowIfNegative(long value, string paramName = null) public static void ThrowIfNull(object argument, string paramName = null) public static void ThrowIfNullOrEmpty(string argument, string paramName = null) public static void ThrowIfNullOrWhiteSpace(string argument, string paramName = null) public static void ThrowObjectDisposedIf(bool condition, object instance) public static void ValidateBufferArguments(byte[] buffer, int offset, int count)