I want to use Resharper structural search and replace the template to automatically replace examples of this:
new Fruit { Name = "Apple", IsTasty = true }
Wherein:
new Fruit("Apple", true)
(Note that the required constructor already exists)
I tried various combinations:
new $type$ { Name = $name$, IsTasty = $isTasty$ };
... using various types of Placeholder, but R # does not find any of the examples in my code. Has anyone done this before?
source
share