/// <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; }
/// <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); }
/// <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); }