2 // Mono.ILASM.CustomAttr
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
14 namespace Mono.ILASM {
16 public class CustomAttr {
18 private IMethodRef method_ref;
21 public CustomAttr (IMethodRef method_ref, byte[] data)
23 this.method_ref = method_ref;
27 public void AddTo (CodeGen code_gen, PEAPI.MetaDataElement elem)
29 method_ref.Resolve (code_gen);
30 code_gen.PEFile.AddCustomAttribute (method_ref.PeapiMethod, data, elem);