Table of Contents

Operator implicit operator

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

implicit operator Either<T1, T2, T3, T4, T5, T6, T7, T8>(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, T7, T8>(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, T7, T8>

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, T7, T8>(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, T7, T8>(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, T7, T8>

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, T7, T8>(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, T7, T8>(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, T7, T8>

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, T7, T8>(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, T7, T8>(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, T7, T8>

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, T7, T8>(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, T7, T8>(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, T7, T8>

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, T7, T8>(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, T7, T8>(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, T7, T8>

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.

implicit operator Either<T1, T2, T3, T4, T5, T6, T7, T8>(EitherSeventh<T7>)

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

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

Parameters

value Either.EitherSeventh<T7>

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

Returns

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

An either holding that value as its seventh case.

Remarks

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

implicit operator Either<T1, T2, T3, T4, T5, T6, T7, T8>(EitherEighth<T8>)

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

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

Parameters

value Either.EitherEighth<T8>

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

Returns

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

An either holding that value as its eighth case.

Remarks

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