Coming from a C background I’m used to defining the size of the buffer in the following way:
#define BUFFER_SIZE 1024 uint8_t buffer[BUFFER_SIZE];
How would you do the accomplish the same thing in C#?
Also does the all-caps K&R style fit in with normal C# Pascal/Camel case?
Do not use ‘static readonly’ because it creates a variable. ‘const’ are replaced at build time and do not create variables.