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.158 -- Release Build+3874b6709118ff35f396fdd2fedd12aeea51803e
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