NullAwarePtr extension

Offers convenience and readability extensions for detecting null pointers.

on

Properties

isNotNullAndIsNotNullPointer bool

Available on Pointer<NativeType>?, provided by the NullAwarePtr extension

Returns true if this is neither null nor a nullptr.
no setter
isNotNullPointer bool

Available on Pointer<NativeType>?, provided by the NullAwarePtr extension

Returns true if this is not a nullptr, but also not null.
no setter
isNullOrNullPointer bool

Available on Pointer<NativeType>?, provided by the NullAwarePtr extension

Returns true if this is either null or is a nullptr.
no setter
isNullPointer bool

Available on Pointer<NativeType>?, provided by the NullAwarePtr extension

Returns true if this is a nullptr.
no setter