This lacks context. Can you also show example code where you use a TransactionType? Also, any reason why you did not make them
const
? I wonder if your resistance on casting to an
enum
to an
int
is more a lack of understanding on your part. Example usage code will be a big help in getting quality answers. —
Rick Davin 3 hours ago