JetBrains Rider 2026.1 Help

Code inspection: Backing field is assigned but never used

This inspection reports a property that writes to the synthesized backing field via field, but never reads that backing field. In practice, the property stores a value that is never used.

Example

public class Settings { public int Port { get { field = 8080; return 0; } } }
public class Settings { public int Port { get { field = 8080; return field; } } }

How to fix

This inspection does not have a dedicated quick-fix. The fix is to either read the backing field where it matters or remove the unnecessary assignment.

01 April 2026