Gemstone Numeric Library
Show/Hide TOC

# BitExtensionsToBinaryString(UInt32) Method

Encodes value as binary, i.e., a string of bit values (0 or 1).

## Definition

Namespace: Gemstone.Numeric.BitExtensions
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.178 -- Release Build+637be28bb791acbdd84bb7f11d11beacd0a820c2
C#
View Source Request Example

    public static string ToBinaryString(
    	this uint value
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Function ToBinaryString (
    	value As UInteger
    ) As String

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static String^ ToBinaryString(
    	unsigned int value
    )

JavaScript
View Source Request Example

    Gemstone.Numeric.BitExtensions.BitExtensions.ToBinaryString = function(value);

#### Parameters

value UInt32
  Integer value to encode.

#### Return Value

String
Binary encoding of value.

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UInt32. 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

#### Reference

BitExtensions Class
ToBinaryString Overload
Gemstone.Numeric.BitExtensions Namespace