In this post, we will see how to resolve ReSharper turning all text pink Question: Recently I’ve installed the Jetbrains product ReSharper for Visual Studio and seem to be having some issues. I’ve installed it before on a different device ...
In this post, we will see how to resolve ReSharper does not recognize the required keyword Question: The following code compiles fine. But ReSharper does not recognize the word required. If I suspend ReSharper, then required is no longer red. ...
Question: In my code I need to use an IEnumerable<> several times, resulting in the ReSharper error of “Possible multiple enumeration of IEnumerable“. Sample code: I can change the objects parameter to be List and then avoid the possible multiple ...
Question: ReSharper likes to point out multiple functions per ASP.NET page that could be made static. Does it help me if I do make them static? Should I make them static and move them to a utility class? Best Answer: ...
Question: I’m getting a warning from ReSharper about a call to a virtual member from my objects constructor. Why would this be something not to do? Best Answer: When an object written in C# is constructed, what happens is that ...
Question: I am using Resharper in Visual Studio 2019. I want to drop these extra tags that are showing up in my code: I cannot find the setting that disables this and I’ve looked everywhere. I had to reset my ...
Question: I’m using Microsoft Visual Studio Enterprise 2022 (64 bit) Version 17.3.0 and JetBrains ReSharper 2022.2 Build 222.0.20220728.74125. Resharper shows “Method Main is never used” but I want to suppress this only if the target is entry point method. I ...
Question: I would like to know if there is some extension to VS Code that helps cleaning code and suggest shorter codes Answer: There are a large number of ways to lint or provide code suggestions or refactoring tips in ...
Question: I have a very old C# based web application in Visual Studio 2019. There are hundreds of files in the solution with probably thousands of lines for logging. We have recently realized that we don’t need this logging any ...
Question: Sorry for this awkward example, but I want to keep it as to the point as possible Lets say, I have parsed a json-file, which gives me the hierarchy below myobj cannot be null SubObject can be null sometimes ...