AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper..::..AssertArgTwoAssignableFromArgOne Method

Ensures that arg2 is assignable from arg1. If it is not, an ArgumentException is thrown.

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

Syntax


public static void AssertArgTwoAssignableFromArgOne(
	Object arg1,
	Object arg2
)

Parameters

arg1
Type: Object
Argument type to check against.
arg2
Type: Object
Argument type to check for.

Exceptions


ExceptionCondition
ArgumentExceptionArgument two is not assignable from arugment one