Click or drag to resize

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
)

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: 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