Also, the Extract Method and Extract Local Variable refactorings are available in top-level code.
#Speed up resharper 9 code
ReSharper is here to help if you break any of these rules when moving your code around. There are, however, some rules: only one file per project can contain top-level code, and top-level sentences should indeed be placed on top, meaning they should precede any type or namespace. With top-level programs, entry-point code can be placed right after the using directives – that’s right, no namespace or class is required. Local functions have received new features in C# 9.0: their parameters and type parameters, as well as the local functions themselves, are now allowed to have attributes. ReSharper is keeping up with these changes, from code style settings to quick-fixes.įor positional records that have a compiler-generated Deconstruct() method, ReSharper offers a deconstructing declaration when appropriate. This means you can now achieve immutability, for the whole object or just for the property, and keep using object initializers. They go perfectly with init-only properties that can only be set during the initialization of an object. Record types introduced in C# 9 are reference types with value semantics. We also managed to implement long-awaited support for the Avalonia UI framework, and we added some new features to help with your daily routine. Of course, Source Generators had to be covered too. With C# 9 recently released, ReSharper 2020.3 was destined to be about supporting new language features with our entire tool set. Hello everyone and welcome to ReSharper’s third and final release of the year!