Condividi tramite


Check.NotNull(Object, String) Method

Definition

Checks if the argument passed in is NotNull Throws NullReferenceException if the arugment is Null

public static void NotNull(object argument, string argumentName = "argument");
static member NotNull : obj * string -> unit
Public Shared Sub NotNull (argument As Object, Optional argumentName As String = "argument")

Parameters

argument
Object

arument info for logging purpose

argumentName
String

argument info for logging

Applies to