Allow optional omission of class name from constructor #4205
Unanswered
datvm
asked this question in
Language Ideas
Replies: 1 comment 3 replies
-
I'd rather use public class SomeLongNameThatWeAreAllLazyToTypeAndRead
{
public new()
{
// ctor
}
} something similar to vb's |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we need to write something like this:
I really like the new C# 9 Target-typed new, and wonder if it can be applied for these too, so it would become:
Right now the syntax isn't working (syntax error) so I don't think there will be any conflict. Probably can be applied to static constructors too but you don't have above scenario for static constructors.
Beta Was this translation helpful? Give feedback.
All reactions