Code inspection: Use array creation expression
This inspection reports Array.CreateInstance(...) used to create a one-dimensional array with a known element type. The equivalent array creation expression is shorter and clearer.
Example
var array = Array.CreateInstance(typeof(int), length);
var array = new int[length];
Quick-fix
Replace Array.CreateInstance(...) with a normal array creation expression.
29 March 2026