private Type GetEnumUnderlyingType(EnumDefinition node) { return ((InternalEnum) node.Entity).UnderlyingType; }