Skip to content

Add EnumBuilder.CreateType back in the public API - #49319

Merged
eerhardt merged 1 commit into
dotnet:mainfrom
eerhardt:EnumBuilderCreateType
Mar 10, 2021
Merged

eerhardt merged 1 commit into
dotnet:mainfrom
eerhardt:EnumBuilderCreateType

Conversation

@eerhardt

@eerhardt eerhardt commented Mar 8, 2021

Copy link
Copy Markdown
Member

Fix #46681

I also sync'd the ref source with the implementation w.r.t. override members. This makes it easier going forward for people using GenerateReferenceAssemblySource to generate this file. Less manual fix ups.

@ghost

ghost commented Mar 8, 2021

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@eerhardt

eerhardt commented Mar 8, 2021

Copy link
Copy Markdown
Member Author

@carlossanlop - since this API already existed in .NET Framework, we have MSDN docs for it:

https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.enumbuilder.createtype

This API also already exists in the implementation assembly. I'm just exposing the ref for it.

Will that documentation automatically get backported to the src file?

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Eric!

@safern safern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eerhardt
eerhardt merged commit d576da2 into dotnet:main Mar 10, 2021
@eerhardt
eerhardt deleted the EnumBuilderCreateType branch March 10, 2021 21:17
@ghost ghost locked as resolved and limited conversation to collaborators Apr 9, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add back EnumBuilder.CreateType()

4 participants