code_junkie

In C# how do you accomplish the same thing as a #define

Nov 13th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #define BUFFER_SIZE 1024
  2.  
  3. uint8_t buffer[BUFFER_SIZE];
  4.  
  5. const int BUFFER_SIZE = 1024;
  6.  
  7. private const int BUFFER_SIZE = 1024;
  8.  
  9. public static readonly int BUFFER_SIZE = 1024;
Add Comment
Please, Sign In to add comment