Пример #1
0
            /// <summary>
            /// 条件是否成立
            /// </summary>
            /// <param name="objConditonValue"></param>
            /// <returns></returns>
            public bool IsFit(IComparable objConditonValue)
            {
                if (objConditonValue == null)
                {
                    return(false);
                }
                System.Object objCmpValue = null;
                if (CCompareAlgorithm.GetValueFromString(m_cmpValue, objConditonValue.GetType(), out objCmpValue) == false)
                {
                    return(false);
                }
                Int32 nCmpRet = objConditonValue.CompareTo(objCmpValue);
                bool  bFit    = CCompareAlgorithm.CmpResultMatch(nCmpRet, m_cmpType);

                return(bFit);
            }
Пример #2
0
 public TCompareType GetCmpType()
 {
     return(CCompareAlgorithm.GetCompareType(m_strCmp));
 }