C
C#4mo ago
Natashi

✅ CSharpFunctionalExtensions.Result implicit conversion

Why does C# not allow implicit conversion in this case even though CSharpFunctionalExtensions.Result contains an implicit operator Result<T, E>(T value)?
No description
3 Replies
Angius
Angius4mo ago
Variance perhaps? Whenever there's an issue casting generic types to eachother, it's probably covariance or contravariance
reflectronic
reflectronic4mo ago
C# does not allow user-defined conversions to or from interfaces
Natashi
NatashiOP4mo ago
Damnit, that's annoying, thanks for the answer
Want results from more Discord servers?
Add your server