Replies: 2 comments 11 replies
-
|
Still not convinced by this. |
Beta Was this translation helpful? Give feedback.
9 replies
-
|
I often declare the enum within a class. public class MyClass
{
public enum Options
{
Foo,
Bar,
}
public void DoSomething(Options opts) { }
}This proposal will allow omitting type name for the following case? var x = new MyClass();
x.DoSomething(.Foo); // Possible?
// Current: require full name
x.DoSomething(MyClass.Options.Foo); |
Beta Was this translation helpful? Give feedback.
2 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.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2026/LDM-2026-04-08.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions