Add Virtual Qualifier to Interface Type

When declaring a method argument of interface type without using the virtual qualifier, DVT raises an error.

../../_images/sv_quick_fix_add_virtual_qualifier_list.png

Place the editor cursor on the error’s line and press Ctrl+1, select Add ‘virtual’ qualifier from the list of quick fix proposals and press Enter.

The ‘virtual’ qualifier is automatically added to the argument declaration.

../../_images/sv_quick_fix_add_virtual_qualifier_after.png