How to publish Interface?

  • Thread starter Thread starter Random
  • Start date Start date
R

Random

I've written an Interface, and am now ready to start using it in some
classes. How do I compile/share the interface between projects?
 
Hello Random,

You'll probably want to add a reference to the assembly containing the interface
definition.
 
I've tried this, but maybe I'm using the wrong kind of project for the
Interface assembly. I chose 'class library'. I can add the reference, but
when I try my Implements statement I get an error...

'MyInterface' is not accessible in this context because it is 'Friend'

And no, I'm not declaring anything as Friend in the interface.
 
Hello Random,

Make sure that you declare your interface as Public.

Public Interface AnInterface
End Interface
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top