IsNotNullOrEmpty Method

Office Open XML

Throws an ArgumentNullException if the string argument is null or empty

Namespace:  OfficeOpenXml.Utils
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public static void IsNotNullOrEmpty(
	this IArgument<string> argument,
	string argumentName
)
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Sub IsNotNullOrEmpty ( _
	argument As IArgument(Of String), _
	argumentName As String _
)
Visual C++
[ExtensionAttribute]
public:
static void IsNotNullOrEmpty(
	IArgument<String^>^ argument, 
	String^ argumentName
)

Parameters

argument
Type: OfficeOpenXml.Utils..::.IArgument<(Of <(String>)>)
Argument to check
argumentName
Type: System..::.String
parameter/argument name

Exceptions

See Also