Resolve the binding codes error that enum types were  recognize as class type