其他方式是交叉类、联合类、补充类、限制类和枚举类。
The other types are intersection classes, union classes, complement classes, restrictions, and enumerated classes.
同样,如果属性值在枚举类中定义,您可以只将该枚举指定到属性。
Similarly, if the property's values are defined in an enumeration class, you can simply assign the enumeration to the property.
完成上述步骤后,就可以在希望使用枚举的任何位置使用第5步中编写的定制枚举类了。
When you are done, you can use the custom enumeration class that you wrote in step 5 anywhere that you want the enumeration to be used.
应用推荐