Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / referencesource / System.Core / Microsoft / Scripting / Ast / LambdaExpression.cs
index cd275de3c6ea9ecfbf83514a50fd7bc1a92f51dd..1318e3550a6db9eb21452141acb3f93af9617dfb 100644 (file)
@@ -139,6 +139,11 @@ namespace System.Linq.Expressions {
             return LambdaCompiler.Compile(this, debugInfoGenerator);
         }
 
+        public Delegate Compile(bool preferInterpretation) {
+            // TODO: add logic for preferInterpretation
+            return Compile();
+        }
+
         /// <summary>
         /// Compiles the lambda into a method definition.
         /// </summary>
@@ -200,6 +205,11 @@ namespace System.Linq.Expressions {
             return (TDelegate)(object)LambdaCompiler.Compile(this, debugInfoGenerator);
         }
 
+        public new TDelegate Compile(bool preferInterpretation) {
+            // TODO: add logic for preferInterpretation
+            return Compile();
+        }
+
         /// <summary>
         /// Creates a new expression that is like this one, but using the
         /// supplied children. If all of the children are the same, it will