Skip to content

M_CodeJam_Code_NotNull__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 8 revisions

Code.NotNull(T) Method (Nullable(T), String)

Ensures that arg != null

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static void NotNull<T>(
	Nullable<T> arg,
	string argName
)
where T : struct, new()

VB

Public Shared Sub NotNull(Of T As {Structure, New}) ( 
	arg As Nullable(Of T),
	argName As String
)

F#

static member NotNull : 
        arg : Nullable<'T> * 
        argName : string -> unit  when 'T : struct, new()

Parameters

 

arg
Type: System.Nullable(T)
The argument.
argName
Type: System.String
Name of the argument.

Type Parameters

 

T
Type of the value. Auto-inferred in most cases

See Also

Reference

Code Class
NotNull Overload
CodeJam Namespace

Clone this wiki locally