System.Int32 -> int

Posts   
 
    
pzolja
User
Posts: 1
Joined: 09-May-2006
# Posted on: 09-May-2006 00:50:43   

Hi,

Is there a reason why the generated code uses System.Int32 instead of int (for C#) and System.String instead of string? Is there a way to change this?

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 09-May-2006 08:39:22   

This is done because then the types could be stored in the project and any .NET language could be used in the templates, where just the stored type of the field is emitted. C#'s int is a synonym for System.Int32, in the IL it is a normal System.Int32. Same for System.String and string, they're synonyms too. So there's nothing to change, they're already the same.

Frans Bouma | Lead developer LLBLGen Pro