Skip to content

Add IsNull property to PWSTR types. #1659

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions