# Bit Members

> Reference: Represents a Bit (high or low) value.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">Bit</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Fields

### High

<span class="api-meta">static</span>

Represents the Bit value high.

<div class="api-signature" data-lang="csharp">

```csharp
public static readonly int High
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared ReadOnly High As Integer
```

</div>

**Field value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

### HighString

<span class="api-meta">static</span>

Represents the Bit value high as a string.

<div class="api-signature" data-lang="csharp">

```csharp
public static readonly string HighString
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared ReadOnly HighString As String
```

</div>

**Field value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

### Low

<span class="api-meta">static</span>

Represents the Bit value low.

<div class="api-signature" data-lang="csharp">

```csharp
public static readonly int Low
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared ReadOnly Low As Integer
```

</div>

**Field value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

### LowString

<span class="api-meta">static</span>

Represents the Bit value low as a string.

<div class="api-signature" data-lang="csharp">

```csharp
public static readonly string LowString
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared ReadOnly LowString As String
```

</div>

**Field value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### CompareTo

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [CompareTo(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#compareto-system-object) | Compares the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) with the `other`. |
| [CompareTo(Bit)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#compareto-opc-uafx-bit) | Compares the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) with another [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

#### CompareTo(object)

Compares the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public int CompareTo(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function CompareTo(other As Object) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare with this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Implements**

[CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)

#### CompareTo(Bit)

Compares the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) with another [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/).

<div class="api-signature" data-lang="csharp">

```csharp
public int CompareTo(Bit other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function CompareTo(other As Bit) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare with this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(T)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)).

**Implements**

[CompareTo(Bit)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)

### Equals

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [Equals(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#equals-system-object)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |
| [Equals(Bit)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#equals-opc-uafx-bit) | Determines whether the specified `other` is equal to this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

#### Equals(object)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As Object) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare to the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) is equal to the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/); otherwise the value false.

**Overrides**

[Equals(object)](https://learn.microsoft.com/dotnet/api/system.valuetype.equals)

#### Equals(Bit)

Determines whether the specified `other` is equal to this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/).

<div class="api-signature" data-lang="csharp">

```csharp
public bool Equals(Bit other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function Equals(other As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare to the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) is equal to the current [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/); otherwise the value false.

**Implements**

[Equals(Bit)](https://learn.microsoft.com/dotnet/api/system.iequatable-1.equals)

### GetHashCode

<span class="api-meta">override</span>

Retrieves a hash code for this [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/).

<div class="api-signature" data-lang="csharp">

```csharp
public override int GetHashCode()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function GetHashCode() As Integer
```

</div>

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

An [int](https://learn.microsoft.com/dotnet/api/system.int32) that contains the hash code for the [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/).

**Overrides**

[GetHashCode()](https://learn.microsoft.com/dotnet/api/system.valuetype.gethashcode)

### GetTypeCode

Returns the type code for the [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value type.

<div class="api-signature" data-lang="csharp">

```csharp
public TypeCode GetTypeCode()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function GetTypeCode() As TypeCode
```

</div>

**Returns**

[TypeCode](https://learn.microsoft.com/dotnet/api/system.typecode)

The enumerated constant [Boolean](https://learn.microsoft.com/dotnet/api/system.typecode#system-typecode-boolean).

**Implements**

[GetTypeCode()](https://learn.microsoft.com/dotnet/api/system.iconvertible.gettypecode)

### Parse

<span class="api-meta">static</span>

Converts the specified string representation of a logical value to its [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) equivalent.

<div class="api-signature" data-lang="csharp">

```csharp
public static Bit Parse(string value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Function Parse(value As String) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A string containing the value to convert. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [High](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#high) if value is equivalent to [HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring); [Low](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#low) if value is equivalent to [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring).

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `value` is not equivalent to [HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring) or [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring). |

### ToString

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [ToString()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#tostring-noparams)<span class="api-meta">override</span> | Converts the value of this instance to its equivalent string representation (either "High" or "Low"). |
| [ToString(IFormatProvider)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#tostring-system-iformatprovider) | Converts the value of this instance to its equivalent string representation (either "High" or "Low"). |

#### ToString()

<span class="api-meta">override</span>

Converts the value of this instance to its equivalent string representation (either "High" or "Low").

<div class="api-signature" data-lang="csharp">

```csharp
public override string ToString()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

"High" (the value of the [HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring) field) if the value of this instance is true, or "Low" (the value of the [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring) field) if the value of this instance is false.

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.valuetype.tostring)

#### ToString(IFormatProvider)

Converts the value of this instance to its equivalent string representation (either "High" or "Low").

<div class="api-signature" data-lang="csharp">

```csharp
public string ToString(IFormatProvider provider)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function ToString(provider As IFormatProvider) As String
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `provider` | [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) | (Reserved) An [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) object. |

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

[HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring) if the value of this instance is true, or [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring) if the value of this instance is false.

**Implements**

[ToString(IFormatProvider)](https://learn.microsoft.com/dotnet/api/system.iconvertible.tostring)

### TryParse

<span class="api-meta">static</span>

Tries to convert the specified string representation of a logical value to its [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) equivalent. A return value indicates whether the conversion succeeded or failed.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool TryParse(string value, out Bit result)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Function TryParse(value As String, result As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) containing the value to convert. |
| `result` | out [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | When this method returns, if the conversion succeeded, contains [High](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#high) if `value` is equal to [HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring) or [Low](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#low) if `value` is equal to [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring). If the conversion failed, contains false. The conversion fails if `value` is a null reference (Nothing in Visual Basic) or is not equal to the value of either the [HighString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#highstring) or [LowString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#lowstring) field. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `value` was converted successfully; otherwise the value false.

## Operators

### Equality

<span class="api-meta">static</span>

Returns a value indicating whether two values of [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) are equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator ==(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator =(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are equal; otherwise the value false.

### GreaterThan

<span class="api-meta">static</span>

Determines whether the first specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value is greater than the second specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than `right`; otherwise, false.

### GreaterThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value is greater than or equal to the second specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >=(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >=(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than or equal to `right`; otherwise, false.

### Implicit

<span class="api-meta">static · 11 overloads</span>

| Overload | Description |
|---|---|
| [implicit operator Bit(bool)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-boolean-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [bool](https://learn.microsoft.com/dotnet/api/system.boolean) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(byte)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-byte-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [byte](https://learn.microsoft.com/dotnet/api/system.byte) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(sbyte)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-sbyte-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [sbyte](https://learn.microsoft.com/dotnet/api/system.sbyte) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(short)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-int16-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [short](https://learn.microsoft.com/dotnet/api/system.int16) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(ushort)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-uint16-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [ushort](https://learn.microsoft.com/dotnet/api/system.uint16) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-int32-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [int](https://learn.microsoft.com/dotnet/api/system.int32) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(uint)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-uint32-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [uint](https://learn.microsoft.com/dotnet/api/system.uint32) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(long)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-int64-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [long](https://learn.microsoft.com/dotnet/api/system.int64) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator Bit(ulong)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-system-uint64-opc-uafx-bit)<span class="api-meta">static</span> | Converts a [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| [implicit operator bool(Bit)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-opc-uafx-bit-system-boolean)<span class="api-meta">static</span> | Converts a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to a [bool](https://learn.microsoft.com/dotnet/api/system.boolean) value. |
| [implicit operator int(Bit)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/members#op-implicit-opc-uafx-bit-system-int32)<span class="api-meta">static</span> | Converts a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to a [int](https://learn.microsoft.com/dotnet/api/system.int32) value. |

#### implicit operator Bit(bool)

<span class="api-meta">static</span>

Converts a [bool](https://learn.microsoft.com/dotnet/api/system.boolean) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(bool value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Boolean) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) | The [bool](https://learn.microsoft.com/dotnet/api/system.boolean) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(byte)

<span class="api-meta">static</span>

Converts a [byte](https://learn.microsoft.com/dotnet/api/system.byte) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(byte value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Byte) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte) | The [byte](https://learn.microsoft.com/dotnet/api/system.byte) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(sbyte)

<span class="api-meta">static</span>

Converts a [sbyte](https://learn.microsoft.com/dotnet/api/system.sbyte) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(sbyte value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As SByte) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [SByte](https://learn.microsoft.com/dotnet/api/system.sbyte) | The [sbyte](https://learn.microsoft.com/dotnet/api/system.sbyte) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(short)

<span class="api-meta">static</span>

Converts a [short](https://learn.microsoft.com/dotnet/api/system.int16) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(short value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Short) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Int16](https://learn.microsoft.com/dotnet/api/system.int16) | The [short](https://learn.microsoft.com/dotnet/api/system.int16) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(ushort)

<span class="api-meta">static</span>

Converts a [ushort](https://learn.microsoft.com/dotnet/api/system.uint16) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(ushort value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As UShort) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [UInt16](https://learn.microsoft.com/dotnet/api/system.uint16) | The [ushort](https://learn.microsoft.com/dotnet/api/system.uint16) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(int)

<span class="api-meta">static</span>

Converts a [int](https://learn.microsoft.com/dotnet/api/system.int32) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(int value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Integer) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The [int](https://learn.microsoft.com/dotnet/api/system.int32) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(uint)

<span class="api-meta">static</span>

Converts a [uint](https://learn.microsoft.com/dotnet/api/system.uint32) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(uint value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As UInteger) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The [uint](https://learn.microsoft.com/dotnet/api/system.uint32) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(long)

<span class="api-meta">static</span>

Converts a [long](https://learn.microsoft.com/dotnet/api/system.int64) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(long value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Long) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Int64](https://learn.microsoft.com/dotnet/api/system.int64) | The [long](https://learn.microsoft.com/dotnet/api/system.int64) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator Bit(ulong)

<span class="api-meta">static</span>

Converts a [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) to a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator Bit(ulong value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As ULong) As Bit
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [UInt64](https://learn.microsoft.com/dotnet/api/system.uint64) | The [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) value. |

**Returns**

[Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/)

The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value from the `value`.

#### implicit operator bool(Bit)

<span class="api-meta">static</span>

Converts a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to a [bool](https://learn.microsoft.com/dotnet/api/system.boolean) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator bool(Bit value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The [bool](https://learn.microsoft.com/dotnet/api/system.boolean) value of the `value`.

#### implicit operator int(Bit)

<span class="api-meta">static</span>

Converts a [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to a [int](https://learn.microsoft.com/dotnet/api/system.int32) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator int(Bit value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As Bit) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

The [int](https://learn.microsoft.com/dotnet/api/system.int32) value of the `value`.

### Inequality

<span class="api-meta">static</span>

Returns a value indicating whether two values of [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) are not equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator !=(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <>(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are not equal; otherwise the value false.

### LessThan

<span class="api-meta">static</span>

Determines whether the first specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value is less than the second specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than `right`; otherwise the value false.

### LessThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value is less than or equal to the second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <=(Bit left, Bit right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <=(left As Bit, right As Bit) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The first [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |
| `right` | [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) | The second [Bit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.bit/) value. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than or equal to `right`; otherwise the value false.
