There are situations when one needs a small helper method, but it’s not quite obvious where to put it. The method might not be generic enough to expose it as a new entity or even as a class member.
C# 7.0 introduced nice improvements to literals. Both digit separator and binary literals can improve code readability.
Sometimes there is a need to ignore a result of a method. It’s straightforward if that’s a return value – just don’t assign it. But what should be done in other cases?
The concept of patterns was introduced in C# 7.0. The idea is to check if an object reflects a specified shape.
Using out parameters was always a bit painful. The biggest drawback is the need to declare variables before they can be used.