AddCustomAttribute() public method

Associate a custom attribute with this meta data element
public AddCustomAttribute ( CustomAttribute ca ) : void
ca CustomAttribute
return void
示例#1
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override void Resolve(PEReader buff)
 {
     parent = buff.GetCodedElement(CIx.HasCustomAttr,parentIx);
     if (parent == null) return;
     parent.AddCustomAttribute(this);
     type = (Method)buff.GetCodedElement(CIx.CustomAttributeType,typeIx);
     byteVal = buff.GetBlob(valIx);
 }