I am trying to figure out the difference between these two enums
public enum EnumA
{
A = 1,
B = 2,
C = 3
}
vs
public enum EnumB : byte
{
A = 1,
B = 2,
C = 3
}
I know that the default base type of enum is int, so If I change base type to byte how its going to impact?
You will only be able to use value 0-255 for the enum. This is probably plenty, if you're not using the enum as flags, then you are limited to only 8 different flags.
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