Binary operators are predefined for the primitive numeric types , enum types and 为基元数值类型、枚举类型和
Binary operators are predefined for the integral primitive types , enum types , and 为基元整型类型、枚举类型和
Unary - operators are predefined for all numeric types and enum types 为所有数值类型和枚举类型都定义了一元-运算符。
Operation on a numeric type or enum type is simply the value of the operand . binary 为数值类型和字符串类型预定义了二元
Types . for primitive types and enum types , computes the bitwise and of its operands 对于基元类型和枚举类型, &计算操作数的按位“与” 。
Types . for integral primitive types and enum types , computes the bitwise or of its operands 对于基元整型类型和枚举类型, |计算操作数的按位“或” 。
Tag can be applied to primitive types , arrays , user - defined value types , enum types , and other reference types 标记可以应用于基元类型、数组、用户定义的值类型、枚举类型和其他引用类型。
For primitive types , enum types , and value types , the inequality operator returns true if the values of its operands are different , 对于基元类型、枚举类型和值类型,如果操作数的值不同,则不相等运算符(
In order for the default value of an enum type to be easily available , the literal 0 implicitly converts to any enum type 与前几个版本的规定没怎么改变,仍然是说“字面量0 ”而不是“编译时常量0 ”可以被转换为任意枚举类型。
This example com api declares a single module with a few constants , a single enum type with a few enum literals , a single interface that has only a 这个示例com api声明了一个有几个常量的模块;一个有几个枚举标量的枚举类型;一个只有一个