Table of Contents

operator != Operator

Definition

Namespace
Tyne
Assembly
Tyne.Core.dll

Operators

| Edit this page View Source

operator !=(in Option<T>, in Option<T>)

Determines whether left is not equal to right.

Declaration
[Pure]
public static bool operator !=(in Option<T> left, in Option<T> right)
Parameters
left
Option<T>

The left-hand Option<T>.

right
Option<T>

The right-hand Option<T>.

Returns
bool

false if left is equal to right; otherwise, true.

Remarks

Equals(in Option<T>) for how Option<T> equality is calculated.

| Edit this page View Source

operator !=(in Option<T>, T?)

Determines whether left is not equal to right.

Declaration
[Pure]
public static bool operator !=(in Option<T> left, T? right)
Parameters
left
Option<T>

The left-hand Option<T>.

right
T

The right-hand T.

Returns
bool

true if left is not equal to right; otherwise, false.

Remarks

Equals(T?) for how equality is calculated.

| Edit this page View Source

operator !=(T?, in Option<T>)

Determines whether left is not equal to right.

Declaration
[Pure]
public static bool operator !=(T? left, in Option<T> right)
Parameters
left
T

The left-hand T.

right
Option<T>

The right-hand Option<T>.

Returns
bool

true if left is not equal to right; otherwise, false.

Remarks

Equals(T?) for how equality is calculated.