public static AttributeCollection GetAssemblyAttributes(SharpAssembly_ assembly) { AttributeCollection attributes = new AttributeCollection(); foreach (ArrayList al in assembly.Attributes.Assembly.Values) { foreach (SharpCustomAttribute attr in al) { attributes.Add(new SharpAssemblyAttribute(assembly, attr)); } } return attributes; }