Inheritance: INotifyPropertyChanged
Example #1
0
        private static IEnumerable <AggregateResult> CreateAggregateResultsForPropertyValues(
            IEnumerable <AggregateFunction> functions, IDictionary <string, object> propertyValues)
        {
            foreach (var function in functions)
            {
                string propertyName = function.FunctionName;
                if (propertyValues.ContainsKey(propertyName))
                {
                    var value  = propertyValues[propertyName];
                    var result = new AggregateResult(value, function);

                    yield return(result);
                }
            }
        }
        private static IEnumerable<AggregateResult> CreateAggregateResultsForPropertyValues(
            IEnumerable<AggregateFunction> functions, IDictionary<string, object> propertyValues)
        {
            foreach (var function in functions)
            {
                string propertyName = function.FunctionName;
                if (propertyValues.ContainsKey(propertyName))
                {
                    var value = propertyValues[propertyName];
                    var result = new AggregateResult(value, function);

                    yield return result;
                }
            }
        }