public static string GetDisplayName(FilterOperator filterOperator, string value)
        {
            switch (filterOperator)
            {
            case FilterOperator.None:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionNoFilter"));

            case FilterOperator.IsLike:
                bool flag1 = value.EndsWith("%");
                bool flag2 = value.StartsWith("%");
                if (flag1 && flag2)
                {
                    return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionContains"));
                }
                if (flag2)
                {
                    return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionEndsWith"));
                }
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionStartsWith"));

            case FilterOperator.IsNotLike:
                bool flag3 = value.EndsWith("%");
                bool flag4 = value.StartsWith("%");
                if (flag3 && flag4)
                {
                    return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionDoesNotContain"));
                }
                if (flag4)
                {
                    return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionStartsWith"));
                }
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionEndsWith"));

            case FilterOperator.IsLessThan:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionLessThan"));

            case FilterOperator.IsLessThanOrEqualTo:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionLessThanOrEqualTo"));

            case FilterOperator.IsEqualTo:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionEqualTo"));

            case FilterOperator.IsNotEqualTo:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionNotEqualTo"));

            case FilterOperator.IsGreaterThanOrEqualTo:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionGreaterThanOrEqualTo"));

            case FilterOperator.IsGreaterThan:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionGreaterThan"));

            case FilterOperator.StartsWith:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionStartsWith"));

            case FilterOperator.EndsWith:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionEndsWith"));

            case FilterOperator.Contains:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionContains"));

            case FilterOperator.NotContains:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionDoesNotContain"));

            case FilterOperator.IsNull:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionIsNull"));

            case FilterOperator.IsNotNull:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionNotIsNull"));

            case FilterOperator.IsContainedIn:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionIsContainedIn"));

            case FilterOperator.IsNotContainedIn:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionIsNotContainedIn"));

            default:
                return(DataFilterOperatorContext.GetLocalizationStringById("FilterFunctionNoFilter"));
            }
        }