What #if CF mean?

Posts   
 
    
xc_lw2000
User
Posts: 48
Joined: 12-Dec-2006
# Posted on: 04-Jun-2007 04:10:52   

when open a entity.cs file. In its head,there is some code like

#if !CF
using System.Runtime.Serialization;
#endif

What' s the 'CF' mean?Is it a variable or other object?I just can't finde its definement!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jun-2007 07:52:37   

It's a preprocessor conditional directive of the compiler. CF means CompactFramework. simple_smile At compilation time, it is used to know whether or not use some code. If you aren't using CompactFramework, the next line (_using System.Runtime.Serialization;_) will be evaluated. However, you only should be aware of user code sections like:

// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
David Elizondo | LLBLGen Support Team