public PropertyStore Load()
        {
            var cmdProps = new PropertyStore();

            if (_commandLineArgs != null && _commandLineArgs.Length > 0)
            {
                var argsCmd = CommandLineParser.ParseCommandLineArgs(_commandLineArgs);
                cmdProps.Merge(argsCmd.ToParameterMap());
            }
            return(cmdProps);
        }
예제 #2
0
        public PropertyStore Load()
        {
            var properties = new PropertyStore();

            try
            {
                var tmp = Parse(_rawPropertiesData);
                properties.Merge(tmp);
            }
            catch (FormatException e)
            {
                throw new PropertySourceException("Failed to parse properties data!", e);
            }

            return(properties);
        }
 public PropertyStore Merge(PropertyStore other)
 {
     return(Merge(other._parameters));
 }