Jedhi Posted January 12, 2004 Posted January 12, 2004 #define COLLECTION\ START start_one;\ END stop_one; #define SET_HOUR(var,hours) var&=(0x11|hours) How to write this in C# ? Quote
*Experts* mutant Posted January 12, 2004 *Experts* Posted January 12, 2004 .NET compilers support preprocessor directives but as far as I know only conditional directives, not ones like you show. Quote
Jedhi Posted January 12, 2004 Author Posted January 12, 2004 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 ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.