コード例 #1
0
        /// <summary>
        /// Generate config with one diffrent parameter
        /// </summary>
        public static ConfigurationFieldClassifier GenerateConfiguration(string parameterName,
                                                                         double val, ConfigurationFieldClassifier baseConfiguration, out string newParameterValue)
        {
            var configuration = baseConfiguration.Clone() as ConfigurationFieldClassifier;

            newParameterValue = "";

            SetConfiguration(ref newParameterValue, configuration, parameterName, val);

            return(configuration);
        }
コード例 #2
0
        public static ConfigurationFieldClassifier GenerateConfiguration(
            Dictionary <string, double> parametersNameVal, ConfigurationFieldClassifier baseConfiguration, out string newParameterValue)
        {
            var configuration = baseConfiguration.Clone() as ConfigurationFieldClassifier;

            newParameterValue = "";

            foreach (var parameterNameVal in parametersNameVal)
            {
                var val = parameterNameVal.Value;

                if (newParameterValue.Length > 0)
                {
                    newParameterValue += ":";
                }

                SetConfiguration(ref newParameterValue, configuration, parameterNameVal.Key, val);
            }

            return(configuration);
        }