ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Quickly create a type

Last modified: 11 February 2024

In this tutorial, we create a type with a standard set of methods.

Creating types or entities in C# can be quite difficult. After all, how many of us remember by hand the correct implementation of Equals()? Luckily, ReSharper is there to help. Let’s take a look.

First, let’s define the simplest possible entity class called Person, which will store a person’s name and age: