diff options
author | Marek Safar <marek.safar@gmail.com> | 2015-05-29 18:41:12 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2015-05-29 18:42:14 +0300 |
commit | 1f6d4a75db02e72e7d01dbdda58499c5813d9b09 (patch) | |
tree | 8ee48b29e99aa304b8e1fcd1b6f81d1de4ccccef /mcs/class/PEAPI | |
parent | 4183c9cbc51a869711f709b1cfef832e14ab4943 (diff) |
[PEAPI] Fixes custom attributes with byte array constant
Diffstat (limited to 'mcs/class/PEAPI')
-rw-r--r-- | mcs/class/PEAPI/Metadata.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/PEAPI/Metadata.cs b/mcs/class/PEAPI/Metadata.cs index 1e08ff38590..041b3392ef4 100644 --- a/mcs/class/PEAPI/Metadata.cs +++ b/mcs/class/PEAPI/Metadata.cs @@ -443,6 +443,10 @@ namespace PEAPI { type = constrType; cVal = val; tabIx = MDTable.CustomAttribute; + + var bac = val as ByteArrConst; + if (bac != null) + byteVal = bac.val; } internal CustomAttribute(MetaDataElement paren, Method constrType, @@ -2945,7 +2949,7 @@ namespace PEAPI { } public class ByteArrConst : DataConstant { - byte[] val; + internal byte[] val; public ByteArrConst(byte[] val) { |