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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.