Beispiel #1
0
 /// <summary>
 /// Adds the given range of attributes to this attribute map builder.
 /// </summary>
 public void AddRange(AttributeMap attributes)
 {
     attributeDict.AddRange(attributes.attributeDict);
 }
Beispiel #2
0
 /// <summary>
 /// Creates an attribute map builder by copying the contents
 /// of an existing attribute map.
 /// </summary>
 /// <param name="attributes">An attribute map.</param>
 public AttributeMapBuilder(AttributeMap attributes)
 {
     attributeDict = new SmallMultiDictionary <IType, IAttribute>(attributes.attributeDict);
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new parameter that retains all characteristics
 /// from this parameter except for its attributes, which are replaced
 /// by a new attribute map.
 /// </summary>
 /// <param name="attributes">
 /// The attribute map for the new parameter.
 /// </param>
 /// <returns>The new parameter.</returns>
 public Parameter WithAttributes(AttributeMap attributes)
 {
     return(new Parameter(this.Type, this.Name, attributes));
 }