Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 public CustomProperties()
 {
     _rawObject = CustomPropertiesInternal.Create();
 }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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);
 }