OptTEquality Operator
Returns true if both values are
IsSome and their unwrapped values are equal; false otherwise.
AssertEqual(None<int>() == None<int>(), false);
AssertEqual(None<int>() == Some(42), false);
AssertEqual(Some(42) == None<int>(), false);
AssertEqual(Some(42) == Some(7), false);
AssertEqual(Some(42) == Some(42), true);
Namespace: Orx.Fun.OptionAssembly: Orx.Fun.Option (in Orx.Fun.Option.dll) Version: 1.2.1+ea79806fa5e0e04bfdaef2a1916930e75e2cde74
public static bool operator ==(
Opt<T> left,
Opt<T> right
)
- left OptT
- Lhs of the equality operator.
- right OptT
- Rhs of the equality operator.
Boolean