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

Edit and Continue for members of generic types #29667

Closed
jnm2 opened this issue Sep 4, 2018 · 5 comments
Closed

Edit and Continue for members of generic types #29667

jnm2 opened this issue Sep 4, 2018 · 5 comments

Comments

@jnm2
Copy link
Contributor

jnm2 commented Sep 4, 2018

Modifying or adding a method in a generic type is not currently supported: https://github.com/dotnet/roslyn/wiki/EnC-Supported-Edits#not-supported-edits This seems like a big-ticket item, but please consider implementing it.

It comes up a lot for me. Right now, for example, I'm debugging an application and want to try eight permutations in a generic class's constructor. Building and setting up the scenario eight times is not as fun as EnC would be.

@tmat
Copy link
Member

tmat commented Sep 4, 2018

Note that this requires support in the CLR and the debugger. If it gets implemented it will likely be for Core CLR only. It'd be useful to file an issue in dotnet/coreclr as well to track that part of the work.

@jnm2
Copy link
Contributor Author

jnm2 commented Sep 5, 2018

@tmat

If it gets implemented it will likely be for Core CLR only.

It would be fantastic if this could be shared with .NET Framework. Even after .NET Core 3.0 arrives, there are so many library and application projects I'm involved in that target or multitarget .NET Framework.

@tmat
Copy link
Member

tmat commented May 25, 2023

Implemented by #67918

@tmat tmat closed this as completed May 25, 2023
@wouterst79
Copy link

Awesome, I can't wait to try it!

@tmat
Copy link
Member

tmat commented May 25, 2023

Note: requires the latest .NET 8 preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants