Oct 7, 2003 #1 J Jedhi Centurion Joined Oct 2, 2003 Messages 127 How do I make macros in C# ? #define C 0x0F
Oct 7, 2003 #2 P PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,471 Location Lancashire, UK C# doesn't have macros. You could declare that as a constant though. i.e. private const int C = 0x0F;
C# doesn't have macros. You could declare that as a constant though. i.e. private const int C = 0x0F;
Oct 7, 2003 #3 J Jedhi Centurion 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 P PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,471 Location Lancashire, UK in that case use public const int C = 0x0F;