Replace with pattern from literal to nameof

Hello JetBrains!


I want to upgrade the objects in quite some DevExpress XPO projects with setters like

SetPropertyValue("File", ref _file, value);


SetPropertyValue(nameof(File), ref _file, value);


Obviously, the name of the object is "File" and the referenced private property is "_file" (quotation marks are mine).

I want to use Find with Pattern to modify the setter in a similar way.

but after trying more than a few hours i have to admit that i don't understand how this can be done with Find with Pattern.

I don't understand what kind of placeholder i should use nor what kind of regex (if any).

Can you please help me out?

Kind regards,

PS I also don't understand the required Topic field in this ticket, that refers to topics i cannot relate to...

Please sign in to leave a comment.