© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
24 replies
Sven ☕

❔ Is there a way to remove brackets from empty methods?

E.g.
public MismatchedEnumLengthsException() : base("Length of values and enums are different. You are required to pass as many values as there are enums")
{
}
public MismatchedEnumLengthsException() : base("Length of values and enums are different. You are required to pass as many values as there are enums")
{
}

I don't need those brackets. Can't I make this look prettier?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is it possible to remove those methods ?
C#CC# / help
2y ago
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
C#CC# / help
4y ago
Is there a way to unload a class from the ram?
C#CC# / help
5mo ago
✅ Good way to access methods from other classes?
C#CC# / help
10mo ago