diff options
author | Zoltan Varga <vargaz@gmail.com> | 2019-03-25 17:04:36 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-03-25 17:04:36 +0300 |
commit | 1fb3b3b87d1c3e37bfee7a63f592c28571681599 (patch) | |
tree | 69464c5da271b80eb107f62236055996829fe160 /mcs/class/referencesource | |
parent | 48b8f5ce47aa9b2a2627fe962db5b32c9edaed39 (diff) |
[netcore] Add System.Reflection.Emit support. (#13613)
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r-- | mcs/class/referencesource/mscorlib/system/rttype.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/rttype.cs b/mcs/class/referencesource/mscorlib/system/rttype.cs index 06cab2b7805..20c994fd335 100644 --- a/mcs/class/referencesource/mscorlib/system/rttype.cs +++ b/mcs/class/referencesource/mscorlib/system/rttype.cs @@ -48,7 +48,7 @@ using MdToken = System.Reflection.MetadataToken; using System.Runtime.Versioning; using System.Diagnostics.Contracts; -#if MONO +#if MONO || NETCORE using CustomAttribute=System.MonoCustomAttrs; #endif @@ -5127,7 +5127,11 @@ namespace System [System.Security.SecuritySafeCritical] // auto-generated public override Object[] GetCustomAttributes(bool inherit) { +#if NETCORE + return CustomAttribute.GetCustomAttributes(this, inherit); +#else return CustomAttribute.GetCustomAttributes(this, RuntimeType.ObjectType, inherit); +#endif } [System.Security.SecuritySafeCritical] // auto-generated |