If you have an enum in your application and you only have a few items, should you force the underlying type to be the smallest possible type?
enum smaller : byte { one, two, three };
No. Don't prematurely optimize unless you've proved with a profiler that it's actually a problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With