Struct Either<T, U>
Assembly: cs.temp.dll.dll
Syntax
public struct Either<T, U>
Type Parameters
Constructors
Either(T)
Declaration
Parameters
Type |
Name |
Description |
T |
value |
|
Either(U)
Declaration
Parameters
Type |
Name |
Description |
U |
value |
|
Properties
IsValue1
Declaration
public bool IsValue1 { get; }
Property Value
IsValue2
Declaration
public bool IsValue2 { get; }
Property Value
Value1
Declaration
Property Value
Value2
Declaration
Property Value
Methods
Deconstruct(out T, out U)
Declaration
public void Deconstruct(out T value1, out U value2)
Parameters
Type |
Name |
Description |
T |
value1 |
|
U |
value2 |
|
TryGetValue1(out T)
Declaration
public bool TryGetValue1(out T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
TryGetValue2(out U)
Declaration
public bool TryGetValue2(out U value)
Parameters
Type |
Name |
Description |
U |
value |
|
Returns
Operators
Implicit(T to Either<T, U>)
Declaration
public static implicit operator Either<T, U>(T value1)
Parameters
Type |
Name |
Description |
T |
value1 |
|
Returns
Implicit(U to Either<T, U>)
Declaration
public static implicit operator Either<T, U>(U value2)
Parameters
Type |
Name |
Description |
U |
value2 |
|
Returns
Implicit(Either<T, U> to Either<U, T>)
Declaration
public static implicit operator Either<U, T>(Either<T, U> either)
Parameters
Type |
Name |
Description |
Either<T, U> |
either |
|
Returns