vb.net equivalent

  • Thread starter Thread starter John
  • Start date Start date
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
 
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.
 
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
 
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
 
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
 
Back
Top