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

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-03-11 17:26:31 +0300
committerjfrijters <jfrijters>2011-03-11 17:26:31 +0300
commite33cc869b91c70b1528831b98ca3a701e810633e (patch)
treed40cdc8eab873eadcd86791c0111c9e5bf55be7e /reflect/Emit
parent341a75d21d75ab3e6f4047498ceffddc00a81c55 (diff)
Added API extensions to get and set custom attributes at the token level.
Diffstat (limited to 'reflect/Emit')
-rw-r--r--reflect/Emit/ModuleBuilder.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/reflect/Emit/ModuleBuilder.cs b/reflect/Emit/ModuleBuilder.cs
index 62c2f952..f5f7a68d 100644
--- a/reflect/Emit/ModuleBuilder.cs
+++ b/reflect/Emit/ModuleBuilder.cs
@@ -1333,6 +1333,11 @@ namespace IKVM.Reflection.Emit
res.Implementation = implementation;
return 0x28000000 + this.ManifestResource.AddRecord(res);
}
+
+ public void __SetCustomAttributeFor(int token, CustomAttributeBuilder customBuilder)
+ {
+ SetCustomAttribute(token, customBuilder);
+ }
}
class ArrayMethod : MethodInfo