BigInteger.IsOne Свойство
Определение
Указывает, равно ли значение текущего объекта BigInteger значению One.Indicates 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
Значение свойства
Значение true
, если объект BigInteger имеет значение One; в противном случае — значение false
.true
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)
.