Method ValidateNotNull
ValidateNotNull<T>(T, String)
Verifies an object isn't null.
Declaration
public static T ValidateNotNull<T>(this T value, string paramName)
where T : class
Parameters
public static T ValidateNotNull<T>(this T value, string paramName)
where T : class
T | value | Object instance to check. |
System.String | paramName | Name of the parameter for the exception if |
Returns
T |
|
Type Parameters
T | Type of value to test for. |
ValidateNotNull(IntPtr, String)
Verifies an IntPtr isn't null.
Declaration
public static IntPtr ValidateNotNull(this IntPtr value, string paramName)
Parameters
public static IntPtr ValidateNotNull(this IntPtr value, string paramName)
System.IntPtr | value | value to check. |
System.String | paramName | Name of the parameter for the exception if |
Returns
System.IntPtr |
|
ValidateNotNull(UIntPtr, String)
Verifies an UIntPtr isn't null.
Declaration
[CLSCompliant(false)]
public static UIntPtr ValidateNotNull(this UIntPtr value, string paramName)
Parameters
[CLSCompliant(false)]
public static UIntPtr ValidateNotNull(this UIntPtr value, string paramName)
System.UIntPtr | value | value to check. |
System.String | paramName | Name of the parameter for the exception if |
Returns
System.UIntPtr |
|