[Mono.CSharp] Fix compilation for the monotouch profile with new exception filter...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 23 Apr 2014 10:24:20 +0000 (12:24 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 23 Apr 2014 10:25:28 +0000 (12:25 +0200)
Otherwise this happens:

    MCS     [monotouch] Mono.CSharp.dll
    ../../mcs/codegen.cs(294,7): error CS1061: Type `System.Reflection.Emit.ILGenerator' does not contain
    a definition for `BeginExceptFilterBlock' and no extension method `BeginExceptFilterBlock' of
    type `System.Reflection.Emit.ILGenerator' could be found. Are you missing an assembly reference?

mcs/class/Mono.CSharp/monotouch.cs

index fed14757214c04e26c51000b3724149f6c1b1e49..a8260819907e8cef35ea7e90ed327970965f6c00 100644 (file)
@@ -40,6 +40,11 @@ namespace System.Reflection.Emit
                        throw new NotSupportedException ();
                }
 
+               public void BeginExceptFilterBlock ()
+               {
+                       throw new NotSupportedException ();
+               }
+
                public void BeginFinallyBlock ()
                {
                        throw new NotSupportedException ();