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.173 -- Release Build+f98ef614814d50c1f66a919b6c587a372a50e4bf
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