WCF Conditional Operations in Service Contract
#if SILVERLIGHT // <------------------------------ ( 1 )
// Silverlight Operations
#else // <------------------------------ ( 2 )
// NON Silverlight Operations
#endif
Mark #1 can be converted to
[Conditional ( "SILVERLIGHT" )]
How to convert Mark #2 ( ELSE Condition [ NON Silverlight ] )
The
ConditionalAttributeis not the same as aC# Preprocessor Directives. So, attempting to replace one with the other is not really appropriate.See this related answer: https://stackoverflow.com/a/3788719/347172