Skip to content

GenAPI event declaration pattern is too verbose #48831

Open
@MichaelSimons

Description

@MichaelSimons

With the latest version of GenAPI, the event declaration pattern changed to be more verbose.

Before (From running GenAPI on system.codedom,8.0.0):

        public event EventHandler PopulateImplementationTypes { add { } remove { } }

After:

        public event EventHandler PopulateImplementationTypes {
            add { }
            remove { }
        }

This verbose pattern seems inconsistent with the other changes I noticed which make the declarations more compact and reduce the number of lines.

I noticed this in dotnet/source-build-reference-packages#1247 which is where the changes from #46425 flow in.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions