Exemple #1
0
        public override bool Satisfies(DataElement obj)
        {
            bool result;

            bool val;
            bool applicable = obj.GetBoolFromDataPath(dpath, out val);

            if (!applicable)
            {
                result = false;
            }
            else
            {
                switch (FilterType)
                {
                case BooleanFilterType.EQUAL:
                    result = val == RefValue;
                    break;

                default:
                    result = false;
                    break;
                }
            }

            return(result ^ NegateResult);
        }