Minor Issue - Namespace Generation and Numbers

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 16-Jan-2009 19:31:24   

Hi all,

If I create a namespace with a number in it, it doesn't output the correct code. For example:

MyCompany.MyProduct.1.API

This is incorrect in VB.NET, it should be generated as MyCompany.MyProduct._1.API.

I understanding using numbers in the namespace is not exactly best practices, but I had to do it in one case.

It would be nice if LLBLGen Pro would preappend a safe character in front of numbers.

This is with LLBLGen Pro v2.5.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 17-Jan-2009 15:15:19   

Though, when the number is prefixed with _, don't you need to specify the _ as well?

If so, you can specify the namespace with _ in the designer.

I also don't really understand why you want to specify a namespace with a number, though I guess it's for versioning (which can be worked around with 'v1'). In general, if these things aren't possible, use the values which are possible.

Frans Bouma | Lead developer LLBLGen Pro