Etg.Yams.Storage.Config.AppDeploymentConfig.RemoveProperty C# (CSharp) Method

RemoveProperty() public method

public RemoveProperty ( string key ) : AppDeploymentConfig
key string
return AppDeploymentConfig
        public AppDeploymentConfig RemoveProperty(string key)
        {
            if (Properties.ContainsKey(key))
            {
                return this;
            }
            Dictionary<string, string> dict = Properties.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
            dict.Remove(key);
            return new AppDeploymentConfig(AppIdentity, TargetClusters, dict);
        }