Is your feature request related to a problem? Please describe.
It's common to need to work with the underlying pointer.
Describe the solution you'd like
public static explicit operator nint(PWSTR pwstr)
{
unsafe
{
return (nint)pwstr.Value;
}
}
Describe alternatives you've considered
I can add an extension method for this, but I can't add extension operators. This means i can't use a natural cast like I can with other pointed to types.
Additional context
N/A
Is your feature request related to a problem? Please describe.
It's common to need to work with the underlying pointer.
Describe the solution you'd like
Describe alternatives you've considered
I can add an extension method for this, but I can't add extension operators. This means i can't use a natural cast like I can with other pointed to types.
Additional context
N/A