ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Quickly create a type

Last modified: 21 July 2022

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: