BigInteger.IsOne 属性

定义

指示当前 BigInteger 对象的值是否是 OneIndicates whether the value of the current BigInteger object is One.

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

属性值

Boolean

如果 BigInteger 对象的值是 One,则为 true;否则为 falsetrue if the value of the BigInteger object is One; otherwise, false.

注解

此属性比其他比较(如 thisBigInteger.Equals(BigInteger.One))提供明显更好的性能。This property offers significantly better performance than other comparisons with one, such as thisBigInteger.Equals(BigInteger.One).

适用于

另请参阅