Пример #1
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a eigth value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either8 <T8> either)
 {
     discriminator = EitherTag8.Eigth;
     Value         = either.Value;
 }
Пример #2
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a sixth value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either6 <T6> either)
 {
     discriminator = EitherTag8.Sixth;
     Value         = either.Value;
 }
Пример #3
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a seventh value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either7 <T7> either)
 {
     discriminator = EitherTag8.Seventh;
     Value         = either.Value;
 }
Пример #4
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a fifth value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either5 <T5> either)
 {
     discriminator = EitherTag8.Fifth;
     Value         = either.Value;
 }
Пример #5
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a fourth value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either4 <T4> either)
 {
     discriminator = EitherTag8.Fourth;
     Value         = either.Value;
 }
Пример #6
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a third value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either3 <T3> either)
 {
     discriminator = EitherTag8.Third;
     Value         = either.Value;
 }
Пример #7
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a second value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either2 <T2> either)
 {
     discriminator = EitherTag8.Second;
     Value         = either.Value;
 }
Пример #8
0
 /// <summary>
 /// Constructors an <see cref="Either{T1, T2, T3, T4, T5, T6, T7, T8}"/>-coproduct out of a first value.
 /// </summary>
 /// <param name="either">The value to wrap</param>
 public Either(Either1 <T1> either)
 {
     discriminator = EitherTag8.First;
     Value         = either.Value;
 }