In reply to mlsxdx:
This has nothing to do with being an anonymous type. The implicit data type of any enum is a 2-state int. The default initial value of an enum is the default initial value of its data type, which is 0 because that default type is an int. .