Ejemplo n.º 1
0
        public void Use_Print_method_when_printing_extension_expression()
        {
            var expr = new NullConditionalExpression(
                Expression.Constant("caller"),
                Expression.Constant("accessOperation"));

            Assert.Equal(expr.Print(), _expressionPrinter.Print(expr));
        }
 /// <summary>
 ///     Determines whether the specified object is equal to the current object.
 /// </summary>
 /// <param name="other">
 ///     The object to compare with the current object.
 /// </param>
 /// <returns>
 ///     True if the specified object  is equal to the current object; otherwise, false.
 /// </returns>
 protected virtual bool Equals([CanBeNull] NullConditionalExpression other)
 => Equals(AccessOperation, other?.AccessOperation);