internal void AddTable(MutableAttributeTable table)
 {
     foreach (KeyValuePair <Type, MutableAttributeTable.TypeMetadata> keyValuePair in table._metadata)
     {
         this.AddTypeMetadata(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <Assembly, MutableAttributeTable.AttributeList> keyValuePair in table._assemblyAttributes)
     {
         this.AddAssemblyMetadata(keyValuePair.Key, keyValuePair.Value);
     }
 }
 private void AddTypeMetadata(Type type, MutableAttributeTable.TypeMetadata md)
 {
     MutableAttributeTable.TypeMetadata existingMd;
     if (this._metadata.TryGetValue(type, out existingMd))
     {
         MutableAttributeTable.AddAttributeMetadata(md, existingMd);
         MutableAttributeTable.AddMemberMetadata(md, existingMd);
     }
     else
     {
         this._metadata.Add(type, md);
     }
 }
 internal void AddCustomAttributes(Type ownerType, string memberName, IEnumerable <object> attributes)
 {
     MutableAttributeTable.AddAttributes(this.GetMemberList(ownerType, memberName), attributes);
 }
 internal void AddCustomAttributes(Type type, IEnumerable <object> attributes)
 {
     MutableAttributeTable.AddAttributes(this.GetTypeList(type), attributes);
 }
 internal void AddCustomAttributes(Assembly assembly, IEnumerable <object> attributes)
 {
     MutableAttributeTable.AddAttributes(this.GetAssemblyList(assembly), attributes);
 }