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
publicclassBaseClass{publicintID{get;set;}}publicclassSubClass:BaseClass{}varparam=Expression.Parameter(typeof(SubClass));varbody=Expression.Property(param,"ID");varlambda=Expression.Lambda<Func<SubClass,int>>(body,param);Expression<Func<SubClass,int>>lambdaExpr= x =>x.ID;Console.WriteLine(ExpressionComparer.AreEqual(lambda,lambdaExpr));
These 2 lambdas should be equal, but ExpressionComparer.AreEqual() returns false.
These 2 lambdas should be equal, but ExpressionComparer.AreEqual() returns false.
This issue should be related to this question:
https://stackoverflow.com/questions/13615927/equality-for-net-propertyinfos#13616025
The text was updated successfully, but these errors were encountered: