Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can VB extract interfaces from a class like C#?

Tags:

vb.net

We have a large chunk of legacy code in VB that I want to unit test, so step one if building interfaces. In C#, visual studio has the cool little Refactor -> Extract Interface function. VB Doesn't, though?

Is there a good way to do this in VB?

like image 589
Neil M. Avatar asked Jul 26 '13 15:07

Neil M.


1 Answers

Extract Interface function. VB Doesn't, though?

Yes. Unfortunately, Microsoft Visual Studio does not support refactor functionality for VB.NET.

You can install third party tools such as ReSharper, though.

For more information, also have a look at this question on SO: Refactoring options in Visual Studio 2010 differ between C# and VB

like image 102
Fabian Bigler Avatar answered Nov 17 '22 03:11

Fabian Bigler