Descriptor for a Custom Attribute (.custom)
Наследование: MetaDataElement
Пример #1
0
 /// <summary>
 /// Associate some custom attribute(s) with this meta data element
 /// </summary>
 /// <param name="cas">list of custom attributes</param>
 public void SetCustomAttributes(CustomAttribute[] cas)
 {
     if (cas == null)
         customAttributes = null;
     else
         customAttributes = new ArrayList(cas);
 }
Пример #2
0
 internal static void Read(PEReader buff, TableRow[] attrs)
 {
     for (int i=0; i < attrs.Length; i++) {
         attrs[i] = new CustomAttribute(buff);
     }
 }
Пример #3
0
 /// <summary>
 /// Associate a custom attribute with this meta data element
 /// </summary>
 public void AddCustomAttribute(CustomAttribute ca)
 {
     if (customAttributes == null) {
         customAttributes = new ArrayList();
     }
     customAttributes.Add(ca);
 }