T
CSharpTest.Net
NotEmpty<T>(T) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > (Global) Namespace > Check Class > NotEmpty Method : NotEmpty<T>(T) Method

value

Glossary Item Box

Verfies that the collection is not null and not empty and returns the collection. throws ArgumentNullException, ArgumentOutOfRangeException

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function NotEmpty(Of T As IEnumerable)( _
   ByVal value As T _
) As T
C# 
public static T NotEmpty<T>( 
   T value
)
where T: IEnumerable

Parameters

value

Type Parameters

T

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThe exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
System.ArgumentOutOfRangeExceptionThe exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys