5 // Ankit Jain <jankit@novell.com>
7 // Copyright 2006 Novell, Inc (http://www.novell.com)
11 using System.Collections;
13 namespace Mono.ILASM {
15 public class Module : ICustomAttrTarget {
17 ArrayList customattr_list;
19 public Module (string name)
22 customattr_list = null;
29 public void AddCustomAttribute (CustomAttr customattr)
31 if (customattr_list == null)
32 customattr_list = new ArrayList ();
34 customattr_list.Add (customattr);
37 public void Resolve (CodeGen code_gen, PEAPI.Module module)
39 if (customattr_list == null)
42 foreach (CustomAttr customattr in customattr_list)
43 customattr.AddTo (code_gen, module);