Skip to content

M_CodeJam_Code_NotNullAndItemNotNull__1

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

Code.NotNullAndItemNotNull(T) Method

Ensures that arg and its all items != null

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

Syntax

C#

public static void NotNullAndItemNotNull<T>(
	IEnumerable<T> arg,
	string argName
)
where T : class

VB

Public Shared Sub NotNullAndItemNotNull(Of T As Class) ( 
	arg As IEnumerable(Of T),
	argName As String
)

F#

static member NotNullAndItemNotNull : 
        arg : IEnumerable<'T> * 
        argName : string -> unit  when 'T : not struct

Parameters

 

arg
Type: System.Collections.Generic.IEnumerable(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
CodeJam Namespace

Clone this wiki locally