BigInteger.IsOne 属性

定义

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

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

属性值

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

注解

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

适用于

另请参阅