Interfaces Additions
The Visual Studio 2010 IDE offers default solutions according to naming conventions it finds in your code. This is particularly true if you want to generate interfaces instead of other types. For example, if you type
Dim interfaceVariable as ITestInterface
The IDE notices that ITestInterface’s identifier begins with the I letter; therefore, it assumes you want to generate an interface. Because of this, the default solution in the correction options will not be Generate Class but Generate Interface. The stub for the new interface is simply the following:
Interface ITestInterface End Interface
If you want to change the accessibility level for the new interface, you need to generate it invoking the Generate New Type window or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access