BigInteger.IsZero 属性

定义

指示当前 BigInteger 对象的值是否是 Zero

public:
 property bool IsZero { bool get(); };
public bool IsZero { get; }
member this.IsZero : bool
Public ReadOnly Property IsZero As Boolean

属性值

Boolean

如果 BigInteger 对象的值是 Zero,则为 true;否则为 false

注解

此属性的性能明显好于 BigInteger.Equals(BigInteger.Zero)

适用于

另请参阅