tag: resharper

ReSharper Annotations. Can it be null?

on 2015-08-16

Hi, ReSharper is doing great job when it comes to semantics of your code and control flow graph analysis. The special edge case I want to talk about is nullness analysis. Unfortunately sometimes it’s hard to predict whether the method returns null or it doesn’t. To solve this problem R# provides an option to annotate your code. Let’s look at this snippet: public Bar Foo() { return Random.NextDouble() < 0.1 ?

#resharper #programming

Read more of ReSharper Annotations. Can it be null?

AsyncSuffix ReSharper extension

on 2015-08-02

There is a tendency in a .NET world to build asynchronous CPU bounded or IO related API. We also can see that some APIs support both asynchronous and synchronous versions for the backward compatibility reasons. That puts us in a situation where we should be able to distinguish between async and non-async versions of method. Microsoft suggests us to follow the naming convention where every asynchronous method include Async suffix after the operation name.

#programming #resharper

Read more of AsyncSuffix ReSharper extension

Sharing ReSharper settings and Live Templates

on 2015-07-05

In my previous post I’ve described how to create your own Live Templates for ReSharper. Today I’m going to tell how to share your ReSharper settings and Live Templates with your team. All the plug-ins for ReSharper are regular NuGet packages. That means that we can pack and publish it to the official ReSharper NuGet feed or to your own company’s private feed (in case you want to keep it away from the rest of the world).

#resharper #programming

Read more of Sharing ReSharper settings and Live Templates

Custom live templates for ReSharper

on 2015-06-27

Hi! As a .NET developer I’m enjoying to use an intelligent plug-in for Visual Studio which is called ReSharper. It saves me time, provides me a static analysis and generates code for me. In fact code completion and code generation is a very crucial part of this product. By default ReSharper goes with more than 20 Live Templates. The good fact is that it’s easy to customize, and you can introduce your own templates.

#programming #resharper

Read more of Custom live templates for ReSharper