Class Either
Static factory methods for creating Either instances.
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public static class Either
Methods
| Edit this page View SourceLeft<T>(T)
Creates a new Left instance with the specified value.
Declaration
public static Left<T> Left<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to contain. |
Returns
Type | Description |
---|---|
Left<T> | A new Left instance containing the specified value. |
Type Parameters
Name | Description |
---|---|
T | The type of the value. |
Right<T>(T)
Creates a new Right instance with the specified value.
Declaration
public static Right<T> Right<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to contain. |
Returns
Type | Description |
---|---|
Right<T> | A new Right instance containing the specified value. |
Type Parameters
Name | Description |
---|---|
T | The type of the value. |