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

value

Glossary Item Box

Verifies that value is not null and returns the value or throws ArgumentNullException

Syntax

Visual Basic (Declaration) 
Public Shared Function NotNull(Of T)( _
   ByVal value As T _
) As T
C# 
public static T NotNull<T>( 
   T value
)

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.

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys