Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants