vb.net equivalent

J

John

Hi

What is the vb.net equivalent of the following code;

public interface IPlugin
{
void PerformAction();
}

Also what do I need to do to create this code in a separate assembly?

Thanks

Regards
 
R

Rob Windsor [MVP]

It would be:

Public Interface IPlugin
Sub PerformAction()
End Interface

You put the declaration in a seperate assembly exactly the same way you
would in C#, create a new Class Library project, add a new Class and add the
code.

BTW, there are many C# to VB translators you can use for free online, just
do a search on Google.
 
G

Guest

Public Interface IPlugin
Sub PerformAction()
End Interface

Compile the assembly and away you go...

--
David Anton
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
 
J

John

Well the converter I used came up with;

Public Interface IPlugin
Dim PerformAction as void
End Interface

Which did not look OK to me therefore I asked the questions.

Regards

Rob Windsor said:
It would be:

Public Interface IPlugin
Sub PerformAction()
End Interface

You put the declaration in a seperate assembly exactly the same way you
would in C#, create a new Class Library project, add a new Class and add
the code.

BTW, there are many C# to VB translators you can use for free online, just
do a search on Google.

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/


John said:
Hi

What is the vb.net equivalent of the following code;

public interface IPlugin
{
void PerformAction();
}

Also what do I need to do to create this code in a separate assembly?

Thanks

Regards
 
G

Guest

Online converters are notoriously buggy.
Please download the free demo for our Instant VB C# to VB converter
(www.instantvb.com). The free demo is often all you need if your interest is
mainly converting smaller samples.

--
David Anton
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter


John said:
Well the converter I used came up with;

Public Interface IPlugin
Dim PerformAction as void
End Interface

Which did not look OK to me therefore I asked the questions.

Regards

Rob Windsor said:
It would be:

Public Interface IPlugin
Sub PerformAction()
End Interface

You put the declaration in a seperate assembly exactly the same way you
would in C#, create a new Class Library project, add a new Class and add
the code.

BTW, there are many C# to VB translators you can use for free online, just
do a search on Google.

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/


John said:
Hi

What is the vb.net equivalent of the following code;

public interface IPlugin
{
void PerformAction();
}

Also what do I need to do to create this code in a separate assembly?

Thanks

Regards
 

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

Top