Results 1 to 3 of 3

Thread: Any difference between a valid C# class name and a valid VB.Net one?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Any difference between a valid C# class name and a valid VB.Net one?

    I'm doing some CodeGen work and I want it to use either C# or VB.Net depending on the user selection.

    One of the things that is needed is a valid class name - is there any need to implement two versions of this?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Any difference between a valid C# class name and a valid VB.Net one?

    I guess the only issue might be language keywords, which would be valid type names in one language but not the other, e.g. Integer or Date would be valid in C# but not in VB, or at least not unescaped.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Any difference between a valid C# class name and a valid VB.Net one?

    Spot on - as I discovered when code generation met the Turkish Lira currency code [TRY]... so it looks like I'm going to need to have two language specific functions.

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