You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some struct-wrapping-integer acting as ID. I have overloaded equality operators between my object and integer, and implicit casts between my struct as integer.
If the Type property of either left or right represents a user-defined type that overloads the equality operator, the MethodInfo that represents that method is the implementing method.
Would it be possible to implement such a support?
The text was updated successfully, but these errors were encountered:
Hello,
I have some struct-wrapping-integer acting as ID. I have overloaded equality operators between my object and integer, and implicit casts between my struct as integer.
I've seen in code that for struct, implicit casts are ignored, and there is no overloaded equality operator usage support, even if Expression.Equal works with it (https://docs.microsoft.com/en-us/dotnet/api/system.linq.expressions.expression.equal?view=netframework-4.8).
Would it be possible to implement such a support?
The text was updated successfully, but these errors were encountered: