Beispiel #1
0
 /// <summary>
 /// Creates this attribute map as a read-only view of the given
 /// attribute map builder.
 /// </summary>
 public AttributeMap(AttributeMapBuilder Builder)
 {
     this.attributeDict = Builder.attributeDict;
 }
Beispiel #2
0
 /// <summary>
 /// Creates an attribute map builder by copying the contents
 /// of another attribute map builder.
 /// </summary>
 /// <param name="attributes">An attribute map builder.</param>
 public AttributeMapBuilder(AttributeMapBuilder attributes)
 {
     attributeDict = new SmallMultiDictionary <IType, IAttribute>(attributes.attributeDict);
 }
Beispiel #3
0
 /// <summary>
 /// Adds the given range of attributes to this attribute map builder.
 /// </summary>
 public void AddRange(AttributeMapBuilder attributes)
 {
     attributeDict.AddRange(attributes.attributeDict);
     // foreach (var kvPair in attributes.attributeDict)
     //     GetAttributeBag(kvPair.Key).AddRange(kvPair.Value);
 }