diff options
author | jfrijters <jfrijters> | 2011-03-11 17:26:31 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-11 17:26:31 +0300 |
commit | e33cc869b91c70b1528831b98ca3a701e810633e (patch) | |
tree | d40cdc8eab873eadcd86791c0111c9e5bf55be7e /reflect/Emit | |
parent | 341a75d21d75ab3e6f4047498ceffddc00a81c55 (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.cs | 5 |
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 |