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
};
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…