Class Either<TA, TB>
TBD
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public abstract class Either<TA, TB>
Type Parameters
Name | Description |
---|---|
TA | TBD |
TB | TBD |
Constructors
| Improve this Doc View SourceEither(TA, TB)
TBD
Declaration
protected Either(TA left, TB right)
Parameters
Type | Name | Description |
---|---|---|
TA | left | TBD |
TB | right | TBD |
Properties
| Improve this Doc View SourceIsLeft
TBD
Declaration
public abstract bool IsLeft { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsRight
TBD
Declaration
public abstract bool IsRight { get; }
Property Value
Type | Description |
---|---|
Boolean |
Left
TBD
Declaration
protected TA Left { get; }
Property Value
Type | Description |
---|---|
TA |
Right
TBD
Declaration
protected TB Right { get; }
Property Value
Type | Description |
---|---|
TB |
Value
TBD
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
| Improve this Doc View SourceFold<TRes>(Func<TA, TRes>, Func<TB, TRes>)
TBD
Declaration
public TRes Fold<TRes>(Func<TA, TRes> left, Func<TB, TRes> right)
Parameters
Type | Name | Description |
---|---|---|
Func<TA, TRes> | left | TBD |
Func<TB, TRes> | right | TBD |
Returns
Type | Description |
---|---|
TRes | TBD |
Type Parameters
Name | Description |
---|---|
TRes | TBD |
Map<TRes1, TRes2>(Func<TA, TRes1>, Func<TB, TRes2>)
TBD
Declaration
public Either<TRes1, TRes2> Map<TRes1, TRes2>(Func<TA, TRes1> map1, Func<TB, TRes2> map2)
Parameters
Type | Name | Description |
---|---|---|
Func<TA, TRes1> | map1 | TBD |
Func<TB, TRes2> | map2 | TBD |
Returns
Type | Description |
---|---|
Either<TRes1, TRes2> | TBD |
Type Parameters
Name | Description |
---|---|
TRes1 | TBD |
TRes2 | TBD |
MapLeft<TRes>(Func<TA, TRes>)
TBD
Declaration
public Either<TRes, TB> MapLeft<TRes>(Func<TA, TRes> map)
Parameters
Type | Name | Description |
---|---|---|
Func<TA, TRes> | map | TBD |
Returns
Type | Description |
---|---|
Either<TRes, TB> | TBD |
Type Parameters
Name | Description |
---|---|
TRes | TBD |
MapRight<TRes>(Func<TB, TRes>)
TBD
Declaration
public Either<TA, TRes> MapRight<TRes>(Func<TB, TRes> map)
Parameters
Type | Name | Description |
---|---|---|
Func<TB, TRes> | map | TBD |
Returns
Type | Description |
---|---|
Either<TA, TRes> | TBD |
Type Parameters
Name | Description |
---|---|
TRes | TBD |
ToLeft()
TBD
Declaration
public Left<TA, TB> ToLeft()
Returns
Type | Description |
---|---|
Left<TA, TB> | TBD |
ToRight()
TBD
Declaration
public Right<TA, TB> ToRight()
Returns
Type | Description |
---|---|
Right<TA, TB> | TBD |
Operators
| Improve this Doc View SourceImplicit(Left<TA> to Either<TA, TB>)
Performs an implicit conversion from Left<T> to Either<TA, TB>.
Declaration
public static implicit operator Either<TA, TB>(Left<TA> left)
Parameters
Type | Name | Description |
---|---|---|
Left<TA> | left | The object to convert |
Returns
Type | Description |
---|---|
Either<TA, TB> | The result of the conversion. |
Implicit(Right<TB> to Either<TA, TB>)
Performs an implicit conversion from Right<T> to Either<TA, TB>.
Declaration
public static implicit operator Either<TA, TB>(Right<TB> right)
Parameters
Type | Name | Description |
---|---|---|
Right<TB> | right | The object to convert |
Returns
Type | Description |
---|---|
Either<TA, TB> | The result of the conversion. |