Jan 12, 2004 #1 J 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# ?
#define COLLECTION\ START start_one;\ END stop_one; #define SET_HOUR(var,hours) var&=(0x11|hours) How to write this in C# ?
Jan 12, 2004 #2 M mutant Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* .NET compilers support preprocessor directives but as far as I know only conditional directives, not ones like you show.
.NET compilers support preprocessor directives but as far as I know only conditional directives, not ones like you show.
Jan 12, 2004 #3 J Jedhi Well-known member Joined Oct 2, 2003 Messages 127 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 ?
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 ?