Skip to content

Add IsNull property to PWSTR types. #1659

@mjr4077au

Description

@mjr4077au

Is your feature request related to a problem? Please describe.

Currently if I need to check if the underlying value is null, I need to use an unsafe block to access the raw pointer, or I need to use an extension method to get me an IntPtr and then check if it's != IntPtr.Zero.

Describe the solution you'd like

Add an .IsNull property like most other pointer wrappers have.

Describe alternatives you've considered

My own extension property or method.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions