Informedica.GenForm.Settings.Environments.Environment.Init C# (CSharp) Method

Init() private method

private Init ( string machineName, string environmentName, ICollection settings ) : void
machineName string
environmentName string
settings ICollection
return void
        private void Init(string machineName, string environmentName, ICollection<EnvironmentSetting> settings)
        {
            if (string.IsNullOrWhiteSpace(machineName)) throw new ArgumentNullException(machineName);
            if (string.IsNullOrWhiteSpace(environmentName)) throw new ArgumentNullException(environmentName);
            if (settings == null) throw new ArgumentNullException(typeof(EnvironmentSettingsCollection).ToString());

            Name = environmentName;
            MachineName = machineName;
            _settings = settings;
        }