语言

BigInteger.IsOne 属性

定义

指示当前 BigInteger 对象的值是否为 One。

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

属性值

true如果对象的BigInteger值为 One ,则为 ;否则为 false。

注解

此属性的性能明显优于与另一个比较的性能,例如 thisBigInteger.Equals(BigInteger.One)。

适用于

另请参阅