Beispiel #1
0
 protected override Expression VisitAttributePresent(LdapAttributePresentExpression node)
 {
     _sb.Append("(");
     if (node.Operand.NodeType != (ExpressionType)LdapExpressionType.Attribute)
     {
         throw new NotSupportedException(string.Format("Cannot have expression of type {0} as part of a filter.", node.Operand.NodeType));
     }
     this.Visit(node.Operand);
     _sb.Append("=*)");
     return(node);
 }
 protected virtual Expression VisitAttributePresent(LdapAttributePresentExpression node)
 {
     return(node.Update(this.Visit(node.Operand)));
 }