MinimalApis.Extensions icon indicating copy to clipboard operation
MinimalApis.Extensions copied to clipboard

Finish adding implicit operators for all the Result<T1, T2, etc.> to Result<T1, T2, T3, etc.> conversions

Open DamianEdwards opened this issue 3 years ago • 2 comments

Really feels like I should be code-genning these...

DamianEdwards avatar Nov 13 '21 07:11 DamianEdwards

Now I've thought about it for 15 mins I think this is far easier than I realized. I can just implement a single implicit operator on each Results<T> class that accepts ResultsBase. That should be all that's needed.

DamianEdwards avatar Nov 13 '21 07:11 DamianEdwards

Yeah that doesn't work, can't have user-defined operators that use interfaces or base classes 😞

DamianEdwards avatar Nov 14 '21 01:11 DamianEdwards