Class Either
Models the disjoint union of two alternatives, a "left" alternative and a "right" alternative.
Inheritance
System.Object
Either
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RabbitMQ.Util
Assembly: RabbitMQ.Client.WinRT.dll
Syntax
public class Either
Remarks
Borrowed from ML, Haskell etc.
Properties
| Improve this Doc View SourceAlternative
Retrieve the alternative represented by this instance.
Declaration
public EitherAlternative Alternative { get; }
Property Value
Type | Description |
---|---|
EitherAlternative |
Value
Retrieve the value carried by this instance.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceLeft(Object)
Constructs an Either instance representing a Left alternative.
Declaration
public static Either Left(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type | Description |
---|---|
Either |
Right(Object)
Constructs an Either instance representing a Right alternative.
Declaration
public static Either Right(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type | Description |
---|---|
Either |