Skip to content

SA1206: Support safe/unsafe in OrderingTrait #4100

Description

@martincostello

When using the following project settings in .NET 11:

<PropertyGroup>
  <Features>$(Features);updated-memory-safety-rules</Features>
  <LangVersion>preview</LangVersion>
</PropertyGroup>

Declarations such as the following create conflict between SA1206 IDE0036:

internal static extern safe bool FreeLibrary(IntPtr hModule);

From a quick glance, it seems like OrderingTrait either needs a new member, or safe/unsafe needs to be treated as one of the existing members, so that the two analysers do not conflict with each other.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions