当前位置: 首页>>代码示例>>C#>>正文


C# CriteriaOperator.ToString方法代码示例

本文整理汇总了C#中CriteriaOperator.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# CriteriaOperator.ToString方法的具体用法?C# CriteriaOperator.ToString怎么用?C# CriteriaOperator.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CriteriaOperator的用法示例。


在下文中一共展示了CriteriaOperator.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetExpressionEvaluator

 private ExpressionEvaluator GetExpressionEvaluator(CriteriaOperator criteria)
 {
     if (criteria.ToString() == lastCriteria)
         return lastEvaluator;
     lastCriteria = criteria.ToString();
     PropertyDescriptorCollection pdc = ((ITypedList)_View.DataSource).GetItemProperties(null);
     lastEvaluator = new ExpressionEvaluator(pdc, criteria, false);
     return lastEvaluator;
 }
开发者ID:JC-Developers,项目名称:SoftEmpeniosCergo,代码行数:9,代码来源:MyFindPanelFilterHelper.cs

示例2: Replace

 public void Replace(ref CriteriaOperator criteriaOperator, string matchString, CriteriaOperator replaceOperator)
 {
     if (criteriaOperator.ToString() == matchString)
     {
         criteriaOperator = replaceOperator;
         return;
     }
     Extract(criteriaOperator, matchString, replaceOperator);
 }
开发者ID:aries544,项目名称:eXpand,代码行数:9,代码来源:CriteriaOperatorExtractor.cs

示例3: Remove

 public void Remove(ref CriteriaOperator criteriaOperator, string removeString)
 {
     if (criteriaOperator.ToString() == removeString)
     {
         criteriaOperator = null;
         return;
     }
     Extract(criteriaOperator, removeString);
 }
开发者ID:aries544,项目名称:eXpand,代码行数:9,代码来源:CriteriaOperatorExtractor.cs

示例4: Parse

        public static CriteriaOperator Parse(string propertyPath, CriteriaOperator criteriaOperator) {
            while (propertyPath.IndexOf(".", StringComparison.Ordinal) > -1) {
                propertyPath = propertyPath.Substring(0, propertyPath.IndexOf(".", StringComparison.Ordinal)) + "[" +
                               propertyPath.Substring(propertyPath.IndexOf(".", StringComparison.Ordinal) + 1) + "]";
            }
            for (int i = propertyPath.Length - 1; i > -1; i--)
                if (propertyPath[i] != ']') {
                    propertyPath = propertyPath.Substring(0, i + 1) + "[" + criteriaOperator.ToString() + "]" +
                                   new string(']', propertyPath.Length - i - 1);
                    break;
                }

            return CriteriaOperator.Parse(propertyPath);
        }
开发者ID:noxe,项目名称:eXpand,代码行数:14,代码来源:CriteriaOperatorExtensions.cs

示例5: Parse

        public static CriteriaOperator Parse(string propertyPath, CriteriaOperator criteriaOperator)
        {
            while (propertyPath.IndexOf(".")>-1)
            {
                propertyPath = propertyPath.Substring(0, propertyPath.IndexOf(".")) + "[" +
                               propertyPath.Substring(propertyPath.IndexOf(".") + 1) + "]";
            }
            //            string replace = criteriaOperator.ToString().Replace("[","").Replace("]","").Replace(" ","");
            for (int i = propertyPath.Length-1; i > -1; i--)
                if (propertyPath[i] != ']')
                {
                    propertyPath = propertyPath.Substring(0, i+1) + "[" + criteriaOperator.ToString() + "]" +
                                   new string(']', propertyPath.Length - i-1);
                    break;
                }

            return CriteriaOperator.Parse(propertyPath);
        }
开发者ID:cevious,项目名称:eXpand,代码行数:18,代码来源:CriteriaOperatorExtensions.cs


注:本文中的CriteriaOperator.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。