• Api Documentation
Show / Hide Table of Contents
  • Ubiquity.NET.ArgValidators
    • ValidatedNotNullAttribute
    • Validators
      • ValidateDefined
      • ValidateLength
      • ValidateNotDefault
      • ValidateNotNull
      • ValidateNotNullOrWhiteSpace
      • ValidatePattern
      • ValidateRange

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

T value

Object instance to check.

System.String paramName

Name of the parameter for the exception if value is .

Returns

T

value for fluent design usage.

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

System.IntPtr value

value to check.

System.String paramName

Name of the parameter for the exception if value is .

Returns

System.IntPtr

value for fluent design usage.

 

ValidateNotNull(UIntPtr, String)

Verifies an UIntPtr isn't null.

Declaration
[CLSCompliant(false)]
public static UIntPtr ValidateNotNull(this UIntPtr value, string paramName)

Parameters

System.UIntPtr value

value to check.

System.String paramName

Name of the parameter for the exception if value is .

Returns

System.UIntPtr

value for fluent design usage.

Back to top Copyright (C) 2017-2021, Ubiquity.NET Contributors
Build: 7.0.0