Esempio n. 1
0
 /// <summary>
 /// Set either to contain given value for left alternative
 /// </summary>
 public void SetValue(L value)
 {
     this._value    = value;
     this._presence = ValuePresence.Left;
 }
Esempio n. 2
0
 /// <summary>
 /// Construct either instance with left alternative value present
 /// </summary>
 public Either(L value)
 {
     this._value    = value;
     this._presence = ValuePresence.Left;
 }
Esempio n. 3
0
 /// <summary>
 /// Construct either instance with right alternative value present
 /// </summary>
 public Either(R value)
 {
     this._value    = value;
     this._presence = ValuePresence.Right;
 }
Esempio n. 4
0
 /// <summary>
 /// Set either to contain given value for right alternative
 /// </summary>
 public void SetValue(R value)
 {
     this._value    = value;
     this._presence = ValuePresence.Right;
 }