Short.CompareUnsigned(Int16, Int16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
比较两 short
个数值,将值视为无符号。
[Android.Runtime.Register("compareUnsigned", "(SS)I", "", ApiSince=31)]
public static int CompareUnsigned (short x, short y);
[<Android.Runtime.Register("compareUnsigned", "(SS)I", "", ApiSince=31)>]
static member CompareUnsigned : int16 * int16 -> int
参数
- x
- Int16
第一个 short
要比较的
- y
- Int16
要比较的第二个short
返回
如果为 值x == y
0
,则为 ;小于 0
if x < y
的值作为无符号值;大于 0
if x > y
的值作为无符号值
- 属性
注解
比较两 short
个数值,将值视为无符号。
在 9 中添加。
的 java.lang.Short.compareUnsigned(short, short)
Java 文档。
此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。