ReSharper 2026.1 Help

Code inspection: Use alias

This inspection reports a full type or namespace name when there is already an alias in scope for the same symbol. If the alias is the only applicable one, using it makes the code shorter and more consistent with the surrounding file.

Example

using StringObjectPair = (string Name, object Value); public class InfoCollector { private readonly List<(string Name, object Value)> _items = new(); public void Add((string Name, object Value) item) => _items.Add(item); }
using StringObjectPair = (string Name, object Value); public class InfoCollector { private readonly List<StringObjectPair> _items = new(); public void Add(StringObjectPair item) => _items.Add(item); }

Quick-fix

Replacing repeated long symbol names with the existing alias reduces noise and keeps naming consistent.

30 March 2026