protected override void VisitPresent(LdapPresentFilter filter) { if (filter.Attribute.Options.Count > 0) { _inner.Push(Expression.Constant(false)); } var attribute = filter.Attribute.Oid.ToLowerInvariant(); switch (attribute) { case "objectclass": case "2.5.4.0": _inner.Push(Expression.Constant(true)); break; default: var property = GetProperty(attribute); if (property == null) { _inner.Push(Expression.Constant(false)); } else { _inner.Push(Expression.Not(Expression.Call(null, IsNullOrEmptyFunction, property))); } break; } }
protected virtual void VisitPresent(LdapPresentFilter filter) { }