src/NetStandard/Linq/Expressions/Expressions/src/EqualityComparingExpressionVisitor.cs
/// <summary>
/// Checks equality for <paramref name="y"/> against visitor.
/// </summary>
/// <param name="y">The expression that is used for visitation.</param>
/// <returns>True if visitor has proven <paramref name="y"/> as equal.</returns>
Checks equality for  against visitor.
Checks equality for against visitor .
public static bool CheckEquality(EqualityComparingExpressionVisitor visitor, Expression y)
        {
            visitor = visitor ?? throw new ArgumentNullException(nameof(visitor));
            visitor.Visit(y);
            if (visitor.unwindedExpressions.Count > 0) {
                visitor.stopVisitation();
            }
            return !visitor.IsVisitationStopped;
        }
public static bool CheckEquality ( EqualityComparingExpressionVisitor visitor , Expression y ) { visitor = visitor ?? throw new ArgumentNullException ( nameof ( visitor ) ) ; visitor . Visit ( y ) ; if ( visitor . unwindedExpressions . Count > 0 ) { visitor . stopVisitation ( ) ; } return ! visitor . IsVisitationStopped ; }
Checks equality for  against visitor.
Checks equality for against visitor .
True if visitor has proven  as equal.
True if visitor has proven as equal .
visitor
EqualityComparingExpressionVisitor
y
Expression
The expression that is used for visitation.
The expression that is used for visitation .