Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EnumBuilder.CreateType back in the public API #49319

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Mar 8, 2021

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.

@dotnet-issue-labeler
Copy link

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
Copy link
Member Author

eerhardt commented Mar 8, 2021

@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?

Copy link
Member

@steveharter steveharter left a comment

Choose a reason for hiding this comment

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

Thanks Eric!

Copy link
Member

@safern safern left a comment

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