T
A class that implements the System.Collections.Generic.IEnumerable`1 interface.
Platform Core .NET Assemblies API
CheckArgumentNullOrEmpty<T>(IEnumerable<T>,String) Method
See Also  Send Feedback
Terrasoft.Common Namespace > ValidateUtilities Class > CheckArgumentNullOrEmpty Method : CheckArgumentNullOrEmpty<T>(IEnumerable<T>,String) Method
source
Object enumerator.
argumentName
Name of the argument that caused exception.

Glossary Item Box

Checks if the source enumerator is empty or null. If the condition is met, exception is thrown.

Syntax

 
C#
 
 

Parameters

source
Object enumerator.
argumentName
Name of the argument that caused exception.

Type Parameters

T
A class that implements the System.Collections.Generic.IEnumerable`1 interface.

Exceptions

ExceptionDescription
ArgumentNullOrEmptyExceptionIf the source enumerator is empty or null.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.