Added: C# Language Design Notes for Apr 18, 2017 #651
Replies: 3 comments
-
Another option would be to generate code that effectively performs the workaround automatically. So this code: static MyTask Main() { … } would compiled into: static void Main() => MainTask().GetAwaiter().GetResult();
static async Task MainTask() => await MainMyTask();
static MyTask MainMyTask() { … } This way, the generated code does not rely on some unknown
What is the reasoning for this? I think I don't like it, since it trains people that they shouldn't follow the TAP naming convention. |
Beta Was this translation helpful? Give feedback.
-
I have somewhat strong opinions on interfaces where every method name ends in |
Beta Was this translation helpful? Give feedback.
-
Implementing inaccessible interface membersThat might be useful in designing interfaces where there's a public and a protected contract. Today we need to use abstract classes with protected abstract members for that. |
Beta Was this translation helpful? Give feedback.
-
C# Language Design Notes for Apr 18, 2017
sealed override
with default implementationssealed
keyword for non-virtual interface membersMain
Please discuss.
Beta Was this translation helpful? Give feedback.
All reactions