A data structure that represents either a value of type A or a value of type B. The value can never be both A and B. Neither A nor B can ever be null.
More...
|
| Either (A a) |
| Constructs an Either with a value of A. More...
|
|
| Either (B b) |
| Constructs an Either with a value of B. More...
|
|
void | Match (Action< A > ifA, Action< B > ifB) |
| Calls the first delegate with the value of A if it is present, else calls the second delegate with the value of B. More...
|
|
bool | TryGetA (out A a) |
| If this either contains the value of A, the out argument is filled with that value and this method returns true, else it returns false. More...
|
|
bool | TryGetB (out B b) |
| If this either contains the value of B, the out argument is filled with that value and this method returns true, else it returns false. More...
|
|
override int | GetHashCode () |
|
override bool | Equals (object obj) |
|
bool | Equals (Either< A, B > other) |
|
int | CompareTo (object obj) |
|
int | CompareTo (Either< A, B > other) |
|
|
static bool | operator== (Either< A, B > either0, Either< A, B > either1) |
|
static bool | operator!= (Either< A, B > either0, Either< A, B > either1) |
|
static bool | operator> (Either< A, B > either0, Either< A, B > either1) |
|
static bool | operator>= (Either< A, B > either0, Either< A, B > either1) |
|
static bool | operator< (Either< A, B > either0, Either< A, B > either1) |
|
static bool | operator<= (Either< A, B > either0, Either< A, B > either1) |
|
static implicit | operator Either< A, B > (A a) |
|
static implicit | operator Either< A, B > (B b) |
|
A data structure that represents either a value of type A or a value of type B. The value can never be both A and B. Neither A nor B can ever be null.
Definition at line 18 of file Either.cs.