null
. If the condition is met, exception is thrown.
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.
Exception | Description |
---|---|
ArgumentNullOrEmptyException | If the source enumerator is empty or null . |
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