Click or drag to resize

GuardIsNotNullOrWhiteSpace Method

[This is preliminary documentation and is subject to change.]

Checks if stringValue is not NULL or whitespace

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static string IsNotNullOrWhiteSpace(
	string stringValue,
	string paramName
)

Parameters

stringValue
Type: SystemString
The string to check
paramName
Type: SystemString
The name of the parameter being checked

Return Value

Type: String
The string being checked
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when stringValue is NULL
ArgumentExceptionThrown when stringValue consists out of whitespace only
See Also