Skip to content

IDE0049 should be updated to suggest converting IntPtr to nint and UIntPtr to nuint. #63421

@buyaa-n

Description

@buyaa-n

Brief description:

As mentioned in dotnet/runtime#72348 with the numeric IntPtr feature, nint is now an alias for System.IntPtr and nuint is alias for System.UIntPtr, the analyzer IDE0049 should be updated to suggest converting IntPtr to nint and UIntPtr to nuint. Preferably default to "Info" level.

Languages applicable:

C# only

Additional information:

Related to dotnet/runtime#72348

Documentation requirements:

When this analyzer is updated, the Documentation for IDE0049 analyzers could be updated accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions