vb.net equivalent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    vb.net equivalent

    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


  • David Anton

    #2
    RE: vb.net equivalent

    Public Interface IPlugin
    Sub PerformAction()
    End Interface

    Compile the assembly and away you go...

    --
    David Anton
    Source code converters: Convert between C#, C++, Java, and VB with the most accurate and reliable source code converters

    Home of:
    Instant C#: VB.NET to C# Converter
    Instant VB: C# to VB.NET Converter
    Instant J#: VB.NET to J# Converter


    "John" wrote:
    [color=blue]
    > 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
    >
    >
    >[/color]

    Comment

    • Rob Windsor [MVP]

      #3
      Re: vb.net equivalent

      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



      "John" <John@nospam.in fovis.co.uk> wrote in message
      news:uhRV2LmiFH A.2852@TK2MSFTN GP14.phx.gbl...[color=blue]
      > 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
      >
      >[/color]


      Comment

      • John

        #4
        Re: vb.net equivalent

        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 [MVP]" <rob.windsor.no .spam@gmail.com > wrote in message
        news:ug20aaniFH A.708@TK2MSFTNG P09.phx.gbl...[color=blue]
        > 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" <John@nospam.in fovis.co.uk> wrote in message
        > news:uhRV2LmiFH A.2852@TK2MSFTN GP14.phx.gbl...[color=green]
        >> 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
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: vb.net equivalent

          "John" <John@nospam.in fovis.co.uk> schrieb:[color=blue]
          > 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.[/color]

          The converter seems to be buggy...

          Converting code between .NET programming languages
          <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languagecon verters&lang=en >

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          • David Anton

            #6
            Re: vb.net equivalent

            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
            Source code converters: Convert between C#, C++, Java, and VB with the most accurate and reliable source code converters

            Home of:
            Instant C#: VB.NET to C# Converter
            Instant VB: C# to VB.NET Converter
            Instant J#: VB.NET to J# Converter


            "John" wrote:
            [color=blue]
            > 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 [MVP]" <rob.windsor.no .spam@gmail.com > wrote in message
            > news:ug20aaniFH A.708@TK2MSFTNG P09.phx.gbl...[color=green]
            > > 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" <John@nospam.in fovis.co.uk> wrote in message
            > > news:uhRV2LmiFH A.2852@TK2MSFTN GP14.phx.gbl...[color=darkred]
            > >> 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
            > >>
            > >>[/color]
            > >
            > >[/color]
            >
            >
            >[/color]

            Comment

            Working...