Ejemplo n.º 1
0
 protected JsExpression CreateNullCondition(JsExpression target, JsExpression expression)
 {
     if (target.IsComplexType())
     {
         return(new JsBinaryExpression(target, BinaryOperatorType.ConditionalAnd, expression));
     }
     else
     {
         return(new JsConditionalExpression(new JsBinaryExpression(target, BinaryOperatorType.Equal, new JsLiteral(null)), new JsLiteral(null), expression));
     }
 }