AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper..::..AssertNotNull<(Of <(<'T>)>)> Method

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

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

Syntax


[DebuggerHiddenAttribute]
public static void AssertNotNull<T>(
	T arg,
	string argName
)

Type Parameters

T
The type of the argument.

Parameters

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

Exceptions


ExceptionCondition
ArgumentNullException