#define

Jedhi

Well-known member
Joined
Oct 2, 2003
Messages
127
#define COLLECTION\
START start_one;\
END stop_one;



#define SET_HOUR(var,hours) var&=(0x11|hours)


How to write this in C# ?
 
.NET compilers support preprocessor directives but as far as I know only conditional directives, not ones like you show.
 
Yes, you are right. But I got no idea how to translate the code mentioned. I can not even do it with an enum. Got any ideas how to do it ?
 
Back
Top