Gemstone Numeric Library
Show/Hide TOC

# BitExtensionsToBinaryString(Byte) 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.154 -- Release Build+9c55d1e3f6f7e7a168a3c7771afde278e919c61c
C#
View Source Request Example

    public static string ToBinaryString(
    	this byte value
    )

VB
View Source Request Example

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

C++
View Source Request Example

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

JavaScript
View Source Request Example

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

#### Parameters

value Byte
  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 Byte. 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