Skip to content

SA1206 giving false flag for required keyword #3937

@MahmudX

Description

@MahmudX

I am getting SA1206 violation warning for the following declaration -

public required DateTime? CreatedAt { get; set; }

Here the analyzer expecting the required keyword before the access modifier which is wrong.

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