public bool ConditionIsFullfilled(DataCondition dataCondition, object value)
        {
            bool?nullEqualCheck = ConditionCheckHelper.AreObjectsNullEqual(dataCondition.Value, value);

            if (nullEqualCheck != null)
            {
                return((bool)nullEqualCheck);
            }

            string dataConditionValue = dataCondition.Value.ToString();
            string objectValue        = value.ToString();

            return(dataConditionValue.Equals(objectValue));
        }
Exemplo n.º 2
0
        public bool ConditionIsFullfilled(DataCondition dataCondition, object value)
        {
            bool?nullEqualCheck = ConditionCheckHelper.AreObjectsNullEqual(dataCondition.Value, value);

            if (nullEqualCheck != null)
            {
                return((bool)nullEqualCheck);
            }

            try
            {
                int dataConditionValue = Convert.ToInt32(dataCondition.Value);
                int objectValue        = Convert.ToInt32(value);
                return(dataConditionValue == objectValue);
            }
            catch
            {
                return(false);
            }
        }