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