3 ms·
Same here. I think these days you must force a specific code style according to a specific C# version otherwise you're going to have a mess. Harder to read for
by tumetab1 7y ago
Same here.
I think these days you must force a specific code style according to a specific C# version otherwise you're going to have a mess. Harder to read for those used to older c# version while also hard to read for those used to newer c# versions.
You can have a valid reason to have c# classes that just use lambda to implement interfaces, a valid reason to have an interface with methods implementation, and a valid reason to do classic c#. In the end, you still have a mess.
I hope that someone makes a tool that helps make the code consistent and let developers avoid the suffering of thinking "but why is this like this??? oh wait... this the other c# version feature which I never used before.... I guess it's okay? ¯\_(ツ)_/¯
- jolux 7y agoExpression-bodied members aren’t lambdas, they are just syntactic sugar for methods returning a single expression.