X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2FSystem%2FSystem.ComponentModel%2FAttributeCollection.cs;h=8e11797c9eb8d8d8810b006d6851727ecb7574bb;hb=bd9e32f5d73882a39877c4435e6087d69d7ebb61;hp=55bbf32978497d693c94a4985a3ea0b3c0b4590f;hpb=6256817e8bdd3ab02e7cc7831ad748687e76abb6;p=mono.git diff --git a/mcs/class/System/System.ComponentModel/AttributeCollection.cs b/mcs/class/System/System.ComponentModel/AttributeCollection.cs index 55bbf329784..8e11797c9eb 100644 --- a/mcs/class/System/System.ComponentModel/AttributeCollection.cs +++ b/mcs/class/System/System.ComponentModel/AttributeCollection.cs @@ -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