BigIntegerExtensionsGetEnabledBitCount Method

Returns the number of '1' or '0' bits in the current BigInteger object.

Definition

Namespace: SysadminsLV.PKI.CLRExtensions
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static BigInteger GetEnabledBitCount(
	this BigInteger bigInteger,
	bool ones = true
)

Parameters

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.

Return Value

BigInteger
A 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