/// <summary> /// Set the specified property value with the specified key. /// If the properties previously contained a property for the key, the old value is replaced. /// </summary> /// <param name="key">Key with which the specified value is to be set.</param> /// <param name="val">Value to be set with the specified key.</param> /// <returns>This instance.</returns> public CustomProperties Set(string key, float val) { CustomPropertiesInternal.SetNumber(_rawObject, key, val); return(this); }
/// <summary> /// Set the specified property value with the specified key. /// If the properties previously contained a property for the key, the old value is replaced. /// </summary> /// <param name="key">Key with which the specified value is to be set.</param> /// <param name="val">Value to be set with the specified key.</param> /// <returns>This instance.</returns> public CustomProperties Set(string key, DateTime val) { CustomPropertiesInternal.SetDate(_rawObject, key, val); return(this); }
/// <summary> /// Set the specified property value with the specified key. /// If the properties previously contained a property for the key, the old value is replaced. /// </summary> /// <param name="key">Key with which the specified value is to be set.</param> /// <param name="val">Value to be set with the specified key.</param> /// <returns>This instance.</returns> public CustomProperties Set(string key, string val) { CustomPropertiesInternal.SetString(_rawObject, key, val); return(this); }
public CustomProperties() { _rawObject = CustomPropertiesInternal.Create(); }
/// <summary> /// Clear the property for the specified key. /// </summary> /// <param name="key">Key whose mapping is to be cleared.</param> /// <returns>This instance.</returns> public CustomProperties Clear(string key) { CustomPropertiesInternal.Clear(_rawObject, key); return(this); }
/// <summary> /// Set the specified property value with the specified key. /// If the properties previously contained a property for the key, the old value is replaced. /// </summary> /// <param name="key">Key with which the specified value is to be set.</param> /// <param name="val">Value to be set with the specified key.</param> /// <returns>This instance.</returns> public CustomProperties Set(string key, bool val) { CustomPropertiesInternal.SetBool(_rawObject, key, val); return(this); }