ReSharper 2026.1 Help

Code inspection: Unused label

This inspection reports a label that is never referenced by goto, break, continue, or similar control flow. The label has no effect and can be removed.

Example

void M() { label1: label2: goto label1; }
void M() { label1: goto label1; }

Quick-fix

The quick-fix removes the unused label.

13 April 2026