Code inspection: Remove constructor invocation
This inspection reports code that creates a temporary collection instance even though the constructor call does not add useful behavior.
Example
A common case is creating new List<T>(sequence) only to call ToArray() immediately afterward.
var items = new List<int>(source).ToArray();
var items = source.ToArray();
Quick-fix
Remove the redundant constructor call and keep the direct operation on the original sequence.
29 March 2026