[corlib] Add a special method for XI so the linker does not always have to generate it.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 15 Mar 2016 11:47:21 +0000 (12:47 +0100)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 28 Mar 2016 22:51:34 +0000 (15:51 -0700)
List of original contributors:

Sebastien Pouliot <sebastien@xamarin.com>

mcs/class/corlib/System/NotSupportedException.iOS.cs [new file with mode: 0644]
mcs/class/corlib/monotouch_corlib.dll.sources
mcs/class/corlib/monotouch_runtime_corlib.dll.sources
mcs/class/corlib/monotouch_tv_corlib.dll.sources
mcs/class/corlib/monotouch_watch_corlib.dll.sources

diff --git a/mcs/class/corlib/System/NotSupportedException.iOS.cs b/mcs/class/corlib/System/NotSupportedException.iOS.cs
new file mode 100644 (file)
index 0000000..c18b3d6
--- /dev/null
@@ -0,0 +1,13 @@
+namespace System {
+
+       public partial class NotSupportedException {
+
+               // Avoid having the linker generate this method for every linked build
+               // It also fix #30075 where --linkskip=mscorlib means that method could not be added
+               // but still referenced from other assemblies
+               internal static Exception LinkedAway ()
+               {
+                       return new NotSupportedException ("Linked Away");
+               }
+       }
+}
\ No newline at end of file
index 634c3b34771157479382584fa52009a3fe48168c..c8d37dfb3bd0cc3ed9dd7dc9edfea1e991bde4c5 100644 (file)
@@ -20,3 +20,4 @@ CommonCrypto/MD2Managed.g.cs
 CommonCrypto/MD4Managed.g.cs
 System/Environment.iOS.cs
 System/Guid.MonoTouch.cs
+System/NotSupportedException.iOS.cs
index 634c3b34771157479382584fa52009a3fe48168c..c8d37dfb3bd0cc3ed9dd7dc9edfea1e991bde4c5 100644 (file)
@@ -20,3 +20,4 @@ CommonCrypto/MD2Managed.g.cs
 CommonCrypto/MD4Managed.g.cs
 System/Environment.iOS.cs
 System/Guid.MonoTouch.cs
+System/NotSupportedException.iOS.cs
index 634c3b34771157479382584fa52009a3fe48168c..c8d37dfb3bd0cc3ed9dd7dc9edfea1e991bde4c5 100644 (file)
@@ -20,3 +20,4 @@ CommonCrypto/MD2Managed.g.cs
 CommonCrypto/MD4Managed.g.cs
 System/Environment.iOS.cs
 System/Guid.MonoTouch.cs
+System/NotSupportedException.iOS.cs
index 634c3b34771157479382584fa52009a3fe48168c..c8d37dfb3bd0cc3ed9dd7dc9edfea1e991bde4c5 100644 (file)
@@ -20,3 +20,4 @@ CommonCrypto/MD2Managed.g.cs
 CommonCrypto/MD4Managed.g.cs
 System/Environment.iOS.cs
 System/Guid.MonoTouch.cs
+System/NotSupportedException.iOS.cs