語言

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))有顯著優異的效能。

適用於

另請參閱