Skip to content

WFO1000 Analyzer: False positives on overridden properties of standard control descendants #13207

@KlausLoeffelmann

Description

@KlausLoeffelmann

The WFO1000 security analyzer flags overridden properties of standard control descendants, which are already configured for serialization at the base-component level. This results in false positives.

Example:

public class CustomControl3 : Control 
{
    public override Cursor Cursor 
    {
        get => base.Cursor;
        set => base.Cursor = value;
    }
}

Impact:
This affects custom controls and generates unnecessary warnings, hindering productivity.

Replaces a part of the Bug of #12476.

Metadata

Metadata

Labels

area-Analyzers/CodeFixesA Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions