BigIntegerExtensionsGetEnabledBitCount Method |
Returns the number of '1' or '0' bits in the current BigInteger object.
Namespace:
SysadminsLV.PKI.Utils.CLRExtensions
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax 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
Parameters
- bigInteger
- Type: System.NumericsBigInteger
Current BigInteger object. - ones (Optional)
- Type: SystemBoolean
True if the count of '1' should be calculated. False if the count of
'0' should be calculated.
Return Value
Type:
BigIntegerA number of '1' or '0' bits.
Usage Note
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).
See Also