BigIntegerExtensionsGetEnabledBitCount Method
Returns the number of '1' or '0' bits in the current
BigInteger object.
Namespace: SysadminsLV.PKI.CLRExtensionsAssembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
public static BigInteger GetEnabledBitCount(
this BigInteger bigInteger,
bool ones = true
)
<ExtensionAttribute>
Public Shared Function GetEnabledBitCount (
bigInteger As BigInteger,
Optional ones As Boolean = true
) As BigInteger
public:
[ExtensionAttribute]
static BigInteger GetEnabledBitCount(
BigInteger bigInteger,
bool ones = true
)
[<ExtensionAttribute>]
static member GetEnabledBitCount :
bigInteger : BigInteger *
?ones : bool
(* Defaults:
let _ones = defaultArg ones true
*)
-> BigInteger
- bigInteger BigInteger
- Current BigInteger object.
- ones Boolean (Optional)
- True if the count of '1' should be calculated. False if the count of
'0' should be calculated.
BigIntegerA number of '1' or '0' bits.In Visual Basic and C#, you can call this method as an instance method on any object of type
BigInteger. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).