JetBrains Rider 2026.1 Help

Code inspection: Use indexed property

This inspection reports COM interop accessor-method usage where an indexed property can be used instead. The property syntax is shorter and closer to how the API is intended to be used from C#.

Example

var range = worksheet.get_Range("A1", "B2");
var range = worksheet.Range["A1", "B2"];

Quick-fix

Replace the accessor method call with indexed property syntax.

29 March 2026