Results 1 to 3 of 3

Thread: mix and match C# code with VB.Net

  1. #1

    Thread Starter
    Lively Member mikelynch's Avatar
    Join Date
    May 2006
    Location
    Goombungee Qld
    Posts
    83

    Question mix and match C# code with VB.Net

    Can I include C# and VB.Net into the one application. For example can I use objects written in C# to use in my VB app ?

  2. #2
    Addicted Member corwin_ranger's Avatar
    Join Date
    Sep 2004
    Location
    CT
    Posts
    198

    Re: mix and match C# code with VB.Net

    Yes. Within a given solution you can have multiple projects each writtent in a different .NET language.

    You can also reference class libraries wrtten in one language in a project writtent in another (e.g. you can reference a C# assembly from a VB.NET project). In gact, if you develop primarily in VB.NET, you're already doing it since the FCL is pretty much all C#.

    Hope this helps,

    Steve

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: mix and match C# code with VB.Net

    Yes, however you can't mix 2 different languages within a single "Project".
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width