Oct 7, 2003 #1 J Jedhi Well-known member Joined Oct 2, 2003 Messages 127 How do I make macros in C# ? #define C 0x0F
Oct 7, 2003 #2 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* C# doesnt have macros. You could declare that as a constant though. i.e. private const int C = 0x0F;
Oct 7, 2003 #3 J Jedhi Well-known member Joined Oct 2, 2003 Messages 127 But then it is no longer global ! Do you have to define it in every class that use the class then ?
Oct 7, 2003 #4 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* in that case use public const int C = 0x0F;