ReSharper 2026.1 Help

Code inspection: Redundant 'class' keyword in record declaration

This inspection reports the class keyword in a record declaration because record already means a record class unless you explicitly write record struct. Writing record class is redundant.

Example

public sealed record class Person(string Name);
public sealed record Person(string Name);

Quick-fix

The fix keeps the declaration a record class and simply removes the unnecessary keyword.

13 April 2026