public AppConfigCollection FindValuesByDescription(string[] descriptions, ref string pageCookie)
        {
            if (descriptions.Length == 0)
            {
                throw new ArgumentNullException("descriptions");
            }
            MultiValuedProperty <string> propertyValue         = new MultiValuedProperty <string>(descriptions);
            ComparisonFilter             baseQueryFilter       = new ComparisonFilter(ComparisonOperator.Equal, AppConfigSchema.DescriptionQueryProp, propertyValue);
            List <AppConfigSchema.AppConfigByDescription> list = new List <AppConfigSchema.AppConfigByDescription>();
            AppConfigCollection appConfigCollection            = new AppConfigCollection();
            bool flag = false;

            while (!flag)
            {
                QueryFilter pagingQueryFilter = PagingHelper.GetPagingQueryFilter(baseQueryFilter, pageCookie);
                IEnumerable <AppConfigSchema.AppConfigByDescription> collection = this.DataProvider.FindPaged <AppConfigSchema.AppConfigByDescription>(pagingQueryFilter, null, false, null, 1000);
                list.AddRange(collection);
                pageCookie = PagingHelper.GetProcessedCookie(pagingQueryFilter, out flag);
            }
            if (!list.Any <AppConfigSchema.AppConfigByDescription>())
            {
                return(appConfigCollection);
            }
            foreach (AppConfigParameter appConfigParameter in list)
            {
                appConfigCollection.Add(appConfigParameter.Name, appConfigParameter.Value);
            }
            return(appConfigCollection);
        }
        public AppConfigCollection FindValues(AppConfigVersion version, params string[] names)
        {
            IEnumerable <AppConfigParameter> enumerable = this.Find(version, names);
            AppConfigCollection appConfigCollection     = new AppConfigCollection();

            foreach (AppConfigParameter appConfigParameter in enumerable)
            {
                appConfigCollection.Add(appConfigParameter.Name, appConfigParameter.Value);
            }
            return(appConfigCollection);
        }