private bool? InList(FilterContext context, IFilterTarget target, ContentFilterElement element)
{
FilterOperand[] operands = GetOperands(element, 0);
object value = GetValue(context, operands[0], target);
// check for a match.
for (int ii = 1; ii < operands.Length; ii++)
{
object lhs = value;
object rhs = GetValue(context, operands[ii], target);
DoImplicitConversion(ref lhs, ref rhs);
if (IsEqual(lhs, rhs))
{
return true;
}
}
// no match.
return false;
}