コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
 public CustomProperties()
 {
     _rawObject = CustomPropertiesInternal.Create();
 }
コード例 #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);
 }
コード例 #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);
 }