AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper..::..AssertNotEmptyAndNotNull Method

Ensures that arg is not null. If it is, an ArgumentNullException is thrown. If it is an empty string an ArgumentNullException is thrown.

Namespace:  AdvantageCMS.Core.Common.SitemapGenerator
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


[DebuggerHiddenAttribute]
public static void AssertNotEmptyAndNotNull(
	string arg,
	string argName
)

Parameters

arg
Type: String
The argument to check for null.
argName
Type: String
The name of the argument.

Exceptions


ExceptionCondition
ArgumentNullException
ArgumentExceptionArgument must be specified.