


This looks for expressions accessing the same value (since we’re introducing a variable name) and replaces all of them with the newly introduced name to consolidate all of the accesses to the same value.įor the full list of improvements to the support for C#, check out the What’s new in ReSharper 2023.1 page. To address this, we’ve added the Add pattern variable context action over the not null pattern. However, using the not null pattern may hinder your ability to introduce variable names for checked values. The setting consists of 2 options: empty recursive pattern syntax and negated pattern not null, where the latter is the default. Syntax style for null checking patternĪ new Syntax style setting was added to ReSharper 2023.1 to help you maintain a consistent style of not null checks inside patterns. ReSharper 2023.1 introduces a set of inspections with corresponding quick-fixes to optimize and speed up your work with different types of collections by reducing the number of lookups inside them.įor example, ReSharper will now suggest removing redundant Contains and ContainsKey checks or using TryAdd and TryGetValue methods instead. Let’s dive in! C# support Reducing the number of lookups in collections NET tools, including dotCover, dotMemory, dotPeek, and dotTrace, please check out this separate blog post. In this article, we’ll cover the highlights of this major update for ReSharper and touch on the features coming to ReSharper C++. ReSharper 2023.1 and new versions of other JetBrains.
