views:

45

answers:

1

I am working on a plugin architecture and after some reading I have settled on one. The host class will be implemented in C# as well as some of the plugins for that host. The issue I am having is that some of my team uses VB.net. So the question, is it possible to implement a C# (plugin)interface in VB, such that when it is dynamically loaded into the host program it will have the methods required by the interface.

The idea I am attempting in VB:

Imports PluginInterface 

Public Class Class1 Implements IPlugin


End Class

Note: PluginInterface is the namespace that contains the C# IPlugin interface

+2  A: 

Yes, you can absolutely implement an interface written in C# within VB.NET, and vice versa.

Jon Skeet
And the same is true with all .NET languages, as far as I can tell...
Thomas Levesque