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

            if (_commandLineArgs != null && _commandLineArgs.Length > 0)
            {
                var argsCmd = CommandLineParser.ParseCommandLineArgs(_commandLineArgs);
                cmdProps.Merge(argsCmd.ToParameterMap());
            }
            return(cmdProps);
        }
Beispiel #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);
        }