Partial Classes using C# & VB

Last post 05-07-2008 8:12 PM by David Anton. 1 replies.

Sort Posts:

  • Partial Classes using C# & VB

    05-07-2008, 5:00 PM
    • Loading...
    • kim3er
    • Joined on 04-30-2008, 10:29 AM
    • West Yorkshire, UK
    • Posts 10
    Hi,

    I have split my App_Code folder into two sub folders, CS & VB, for C# and VB Classes respectively. My project complies and everything is great, I can access C# Classes from VB code and vice versa. I know have a requirement for a static class that contains both C# & VB Members. Is it possible to create a partial classes with definitions in both C# & VB? I have tried to do so and have managed to access the partial Class from VB code, but the C# code only recognises the C# Members. I have tried recompiling to no avail.

    I'm using Visual Studio 2005 and .NET 2.0. Any help would be greatly appreciated.

    Rich
  • Re: Partial Classes using C# & VB

    05-07-2008, 8:12 PM
    Answer

    Partial classes must be implemented in a single language (C# or VB).

     

    David Anton
    http://www.tangiblesoftwaresolutions.com
    C++ to C# Converter
    C++ to VB Converter
    C++ to Java Converter
    VB to Java Converter
    Java to VB & C# Converter
    Instant C#: VB to C#
    Instant VB: C# to VB
    Instant C++: VB, C#, or Java to C++/CLI
Page 1 of 1 (2 items)