Generating Code from Usage
Rider lets you use code symbols ( classes, methods, variables, properties, fields, etc.) before you declare them. When Rider detects an undeclared symbol, it suggests one or more quick-fixes for generating the corresponding symbol based on the usage, and then smartly adjust the declaration according to the usage context:
For example, if you create a method from usage, Rider will not only create a method, but also detect its return type and types of its parameters:
For additional examples of how Rider creates code symbols from usages, see Undefined variable and Undefined method call samples in the Examples of Quick-Fixes.