Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2016-07-26 19:06:54 +0300
committerMarek Safar <masafa@microsoft.com>2016-08-11 21:53:38 +0300
commit3c3ef17376f5b4e71ac024210672e2d0484f3419 (patch)
tree64997b1b8dee5d2fb6d6e4bc88855f75c91c237a /mcs/class/dlr
parentc37bbef8f0acae10a6df43c805459cb2b3d2ad51 (diff)
[bcl] Update to match NETStandard 1.6 members
Diffstat (limited to 'mcs/class/dlr')
-rw-r--r--mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs b/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs
index 4d1c2356733..050330c0b4d 100644
--- a/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs
+++ b/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs
@@ -137,6 +137,13 @@ namespace System.Linq.Expressions {
return LambdaCompiler.Compile(this, debugInfoGenerator);
}
+#if NETSTANDARD
+ public Delegate Compile(bool preferInterpretation) {
+ // TODO: add logic for preferInterpretation
+ return Compile();
+ }
+#endif
+
#if FEATURE_REFEMIT
/// <summary>
/// Compiles the lambda into a method definition.
@@ -198,6 +205,13 @@ namespace System.Linq.Expressions {
return (TDelegate)(object)LambdaCompiler.Compile(this, debugInfoGenerator);
}
+#if NETSTANDARD
+ public new TDelegate Compile(bool preferInterpretation) {
+ // TODO: add logic for preferInterpretation
+ return Compile();
+ }
+#endif
+
/// <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