DLaB.EarlyBoundGenerator.Settings.EarlyBoundGeneratorConfig.GetSettingValue C# (CSharp) Method

GetSettingValue() public method

public GetSettingValue ( CreationType creationType, string setting ) : string
creationType CreationType
setting string
return string
        public string GetSettingValue(CreationType creationType, string setting)
        {
            var value = CommandLineArguments.FirstOrDefault(s => string.Equals(s.Name, setting, StringComparison.InvariantCultureIgnoreCase)
                                                                 && (s.SettingType == creationType || s.SettingType == CreationType.All));

            if (value == null)
            {
                throw new KeyNotFoundException("Unable to find setting for " + creationType + " " + setting);
            }

            return value.Value;
        }