-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request