How to make all non-virtual members virtual

Using a simple find & replace with a regex in VS2010:

image

This will match all public instance members that do not have the virtual keyword and make them virtual. (go one by one, as it will also match extra stuff like “public class” Winking smile

Read full article

No Comments