Jedhi Posted October 7, 2003 Posted October 7, 2003 How do I make macros in C# ? #define C 0x0F Quote
Administrators PlausiblyDamp Posted October 7, 2003 Administrators Posted October 7, 2003 C# doesn't have macros. You could declare that as a constant though. i.e. private const int C = 0x0F; Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Jedhi Posted October 7, 2003 Author Posted October 7, 2003 But then it is no longer global ! Do you have to define it in every class that use the class then ? Quote
Administrators PlausiblyDamp Posted October 7, 2003 Administrators Posted October 7, 2003 in that case use public const int C = 0x0F; Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.