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.165 -- Release Build+fed221202c0e8c0202a8935c553b1d6d74b53316
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