Table of Contents

Operator implicit operator

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherFirst<T1>)

Changes a value marked for the first position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherFirst<T1> value)

Parameters

value Either.EitherFirst<T1>

The marked value, as produced by First<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its first case.

Remarks

This is what makes First<T>(T) usable as a replacement for this type's own First.

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherSecond<T2>)

Changes a value marked for the second position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherSecond<T2> value)

Parameters

value Either.EitherSecond<T2>

The marked value, as produced by Second<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its second case.

Remarks

This is what makes Second<T>(T) usable as a replacement for this type's own Second.

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherThird<T3>)

Changes a value marked for the third position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherThird<T3> value)

Parameters

value Either.EitherThird<T3>

The marked value, as produced by Third<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its third case.

Remarks

This is what makes Third<T>(T) usable as a replacement for this type's own Third.

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherFourth<T4>)

Changes a value marked for the fourth position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherFourth<T4> value)

Parameters

value Either.EitherFourth<T4>

The marked value, as produced by Fourth<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its fourth case.

Remarks

This is what makes Fourth<T>(T) usable as a replacement for this type's own Fourth.

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherFifth<T5>)

Changes a value marked for the fifth position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherFifth<T5> value)

Parameters

value Either.EitherFifth<T5>

The marked value, as produced by Fifth<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its fifth case.

Remarks

This is what makes Fifth<T>(T) usable as a replacement for this type's own Fifth.

implicit operator Either<T1, T2, T3, T4, T5, T6>(EitherSixth<T6>)

Changes a value marked for the sixth position into an either of this type.

public static implicit operator Either<T1, T2, T3, T4, T5, T6>(Either.EitherSixth<T6> value)

Parameters

value Either.EitherSixth<T6>

The marked value, as produced by Sixth<T>(T).

Returns

Either<T1, T2, T3, T4, T5, T6>

An either holding that value as its sixth case.

Remarks

This is what makes Sixth<T>(T) usable as a replacement for this type's own Sixth.