Commit
[mono.git] / mcs / class / System / System.ComponentModel / AttributeCollection.cs
index 55bbf32978497d693c94a4985a3ea0b3c0b4590f..8e11797c9eb8d8d8810b006d6851727ecb7574bb 100644 (file)
@@ -59,10 +59,15 @@ namespace System.ComponentModel
                }
 
 #if NET_2_0
-               [MonoNotSupported("")]
                public static AttributeCollection FromExisting (AttributeCollection existing, params Attribute [] newAttributes)
                {
-                       throw new NotImplementedException ();
+                       if (existing == null)
+                               throw new ArgumentNullException ("existing");
+                       AttributeCollection ret = new AttributeCollection ();
+                       ret.attrList.AddRange (existing.attrList);
+                       if (newAttributes != null)
+                               ret.attrList.AddRange (newAttributes);
+                       return ret;
                }
 #endif