diff --git a/src/Foundation/ExportAttribute.cs b/src/Foundation/ExportAttribute.cs index cbe495dbde..7adb24a01b 100644 --- a/src/Foundation/ExportAttribute.cs +++ b/src/Foundation/ExportAttribute.cs @@ -30,7 +30,12 @@ // using System; using System.Globalization; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using XamCore.ObjCRuntime; using XamCore.Registrar; diff --git a/src/ObjCRuntime/Stret.cs b/src/ObjCRuntime/Stret.cs index 5876a0864a..4666d69af7 100644 --- a/src/ObjCRuntime/Stret.cs +++ b/src/ObjCRuntime/Stret.cs @@ -22,7 +22,12 @@ using System; using System.Collections.Generic; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using System.Runtime.InteropServices; using XamCore.Foundation; diff --git a/src/btouch.cs b/src/btouch.cs index 98a561594b..49d8ae1c0f 100644 --- a/src/btouch.cs +++ b/src/btouch.cs @@ -27,7 +27,12 @@ using System; using System.IO; using System.Linq; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using System.Collections.Generic; using System.Diagnostics; using System.Text; diff --git a/src/generator-attribute-manager.cs b/src/generator-attribute-manager.cs index d87c18683a..0878c6ba20 100644 --- a/src/generator-attribute-manager.cs +++ b/src/generator-attribute-manager.cs @@ -1,5 +1,10 @@ using System; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif public static class AttributeManager { diff --git a/src/generator-attributes.cs b/src/generator-attributes.cs index c95c0f24fb..b49fdee7d5 100644 --- a/src/generator-attributes.cs +++ b/src/generator-attributes.cs @@ -1,5 +1,11 @@ using System; + +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif // diff --git a/src/generator-enums.cs b/src/generator-enums.cs index bc4004a572..940952ebb2 100644 --- a/src/generator-enums.cs +++ b/src/generator-enums.cs @@ -3,7 +3,12 @@ using System; using System.Collections.Generic; using System.Linq; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using XamCore.Foundation; using XamCore.ObjCRuntime; diff --git a/src/generator-filters.cs b/src/generator-filters.cs index 3677b6ab01..76ec503b43 100644 --- a/src/generator-filters.cs +++ b/src/generator-filters.cs @@ -1,7 +1,12 @@ // Copyright 2015 Xamarin Inc. All rights reserved. using System; using System.Collections.Generic; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using XamCore.Foundation; diff --git a/src/generator-typemanager.cs b/src/generator-typemanager.cs index dbe00c7303..97bd4c4ce8 100644 --- a/src/generator-typemanager.cs +++ b/src/generator-typemanager.cs @@ -1,6 +1,11 @@ using System; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using System.Runtime.InteropServices; public static class TypeManager { diff --git a/src/generator.cs b/src/generator.cs index 650c86cb3f..3af77fb313 100644 --- a/src/generator.cs +++ b/src/generator.cs @@ -45,7 +45,12 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; +#if IKVM +using IKVM.Reflection; +using Type = IKVM.Reflection.Type; +#else using System.Reflection; +#endif using System.Text; using System.ComponentModel;