Merge pull request #2545 from ermshiperete/Xamarin-24974
[mono.git] / mcs / class / corlib / System / __ComObject.cs
index ac50ebfaea236153d53a873183519beb741e7e10..2e7e6066af533f349baeb1462d36c468c53ac937 100644 (file)
@@ -252,4 +252,16 @@ namespace System
                        out IntPtr pUnk);
        }
 }
+#else
+namespace System
+{
+       // this is a shim class so we can AOT during mobile_static build without --enable-minimal=com
+       internal class __ComObject
+       {
+               __ComObject ()
+               {
+                       throw new NotSupportedException ();
+               }
+       }
+}
 #endif