ChatterBox.Client.Common.Settings.SettingsExtensions.AddOrUpdate C# (CSharp) Method

AddOrUpdate() public static method

public static AddOrUpdate ( this propertySet, string key, object value ) : void
propertySet this
key string
value object
return void
        public static void AddOrUpdate(this IPropertySet propertySet, string key, object value)
        {
            if (propertySet.ContainsKey(key))
            {
                propertySet[key] = value;
            }
            else
            {
                propertySet.Add(key, value);
            }
        }
    }
SettingsExtensions