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

Update the class template to add the sealed modifier by default #772

Open
vsfeedback opened this issue Mar 21, 2023 · 3 comments
Open

Update the class template to add the sealed modifier by default #772

vsfeedback opened this issue Mar 21, 2023 · 3 comments

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


In Visual Studio when creating a new class, can we have the sealed modifier included by default?

Posts where the benefit to having sealed classes have been discussed:

Going back and updating the framework is not an option, so the next best thing is possibly to have the template updated to cater for this.


Original Comments

Feedback Bot on 11/28/2022, 01:23 AM:

(private comment, text removed)

@lsoft
Copy link

lsoft commented Mar 22, 2023

Stephen Toub also wrote about benefits of sealed classes: https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-6/#peanut-butter

@CyrusNajmabadi
Copy link
Member

Roslyn doesn't own these templates. Not sure who does. Maybe the sdk? @KathleenDollard ?

@mavasani
Copy link
Member

Going to move this to the project-system repo, who can redirect it as appropriate.

@mavasani mavasani transferred this issue from dotnet/roslyn Oct 19, 2023
@drewnoakes drewnoakes transferred this issue from dotnet/project-system Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants