コード例 #1
0
 /// <summary>
 ///     Returns <code>true</code> if this properties contains a mapping for the specified property key.
 /// </summary>
 /// <param name="property">
 ///     the property key whose presence is to be tested
 /// </param>
 /// <returns> <code>true</code> if this properties contains a mapping for the specified property key </returns>
 public virtual bool Contains <TK>(PropertyKey <TK> property)
 {
     return(properties.ContainsKey(property.Name));
 }
コード例 #2
0
 /// <summary>
 ///     Associates the specified value with the specified property key. If the properties previously contained a mapping
 ///     for the property key, the old
 ///     value is replaced by the specified value.
 /// </summary>
 /// @param
 /// <T>
 ///     the type of the value </param>
 ///     <param name="property">
 ///         the property key with which the specified value is to be associated
 ///     </param>
 ///     <param name="value">
 ///         the value to be associated with the specified property key
 ///     </param>
 public virtual void Set <T>(PropertyKey <T> property, T value)
 {
     properties[property.Name] = value;
 }