Do C# 6.0 features (like expression-bodied method-like members, using static, null-conditional operator or string interpolation) have any impact on the performance of a program or at least the compiling time? I like the new features but I was asking myself when using them if there is any performance gain/issue.
Not really. The new features are merely syntactic sugar for things already possible in C#.
The code generated by the new features, like the null-propagation operator, eventually yield the same C# code as you would already have had before.
It does make you better performing and possibly the code quality better, which is a good thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With