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

Analyzer for terminating empty types with a semicolon instead of { } [C# 12] #1316

Closed
glen-84 opened this issue Dec 3, 2023 · 1 comment · Fixed by #1323
Closed

Analyzer for terminating empty types with a semicolon instead of { } [C# 12] #1316

glen-84 opened this issue Dec 3, 2023 · 1 comment · Fixed by #1323

Comments

@glen-84
Copy link
Contributor

glen-84 commented Dec 3, 2023

With C# 12, you can terminate empty types with a semicolon:

Before:

public interface IApplicationAssemblyMarker { }

After:

public interface IApplicationAssemblyMarker;

This is applicable to classes, records, and structs as well.

It looks a lot neater IMO.

@josefpihrt
Copy link
Collaborator

Good idea!

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

Successfully merging a pull request may close this issue.

2 participants