Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2015-05-29 13:37:25 +0300
committerMarek Safar <marek.safar@gmail.com>2015-05-29 13:37:25 +0300
commit28e4fa0e0fd520bbb1a3a808bad8dcd03fbcbcd1 (patch)
treee454b15f710bc14bc30898b793b1758b5486fc28 /mcs/class/PEAPI
parent296f97e38db9463246c5f38ea892c4353612ee1a (diff)
[ilasm] Extend syntax of custom attribute constructor constants
Diffstat (limited to 'mcs/class/PEAPI')
-rw-r--r--mcs/class/PEAPI/PEAPI.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/PEAPI/PEAPI.cs b/mcs/class/PEAPI/PEAPI.cs
index 46672255e04..3043b3a6ea5 100644
--- a/mcs/class/PEAPI/PEAPI.cs
+++ b/mcs/class/PEAPI/PEAPI.cs
@@ -940,6 +940,12 @@ namespace PEAPI {
element.HasCustomAttr = true;
}
+ public void AddCustomAttribute (Method meth, Constant constant, MetaDataElement element)
+ {
+ metaData.AddCustomAttribute (new CustomAttribute (element, meth, constant));
+ element.HasCustomAttr = true;
+ }
+
public void AddDeclSecurity (SecurityAction sec_action, byte [] data, MetaDataElement element)
{
metaData.AddDeclSecurity (new DeclSecurity (element, (ushort) sec_action, data));