C
C#2mo 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
Angius2mo ago
Variance perhaps? Whenever there's an issue casting generic types to eachother, it's probably covariance or contravariance
reflectronic
reflectronic2mo ago
C# does not allow user-defined conversions to or from interfaces
Natashi
Natashi2mo ago
Damnit, that's annoying, thanks for the answer
Want results from more Discord servers?
Add your server