using
declaration on any block
#6623
Replies: 6 comments
-
What would private readonly using Foo SomeFoo = new Foo(); and thus you'd presumably want |
Beta Was this translation helpful? Give feedback.
-
@maxtoroq What exactly are |
Beta Was this translation helpful? Give feedback.
-
I think this ain't about disposables. It's more likely to be a duplicate of dotnet/roslyn#4491. |
Beta Was this translation helpful? Give feedback.
-
Ah, makes sense. Context is useful. |
Beta Was this translation helpful? Give feedback.
-
Using this you can make yourself a scoped class C
{
using Self = C;
} You can use an analyzer to make sure that type aliases named |
Beta Was this translation helpful? Give feedback.
-
I think this would also enable my proposal |
Beta Was this translation helpful? Give feedback.
-
Example:
Beta Was this translation helpful? Give feedback.
All reactions