You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
976 B
41 lines
976 B
5 years ago
|
#if NET20 || NET30 //|| !NET_4_6
|
||
|
|
||
|
using System.Linq.Expressions;
|
||
|
|
||
|
namespace System.Runtime.CompilerServices
|
||
|
{
|
||
|
[Obsolete("do not use this type", true)]
|
||
|
public partial class ExecutionScope
|
||
|
{
|
||
|
//These fields are accessed via Reflection
|
||
|
public object[] Globals;
|
||
|
|
||
|
public object[] Locals;
|
||
|
|
||
|
public ExecutionScope Parent;
|
||
|
}
|
||
|
|
||
|
public partial class ExecutionScope
|
||
|
{
|
||
|
public Delegate CreateDelegate(int indexLambda, object[] locals)
|
||
|
{
|
||
|
GC.KeepAlive(indexLambda);
|
||
|
GC.KeepAlive(locals);
|
||
|
throw new NotSupportedException();
|
||
|
}
|
||
|
|
||
|
public object[] CreateHoistedLocals()
|
||
|
{
|
||
|
throw new NotSupportedException();
|
||
|
}
|
||
|
|
||
|
public Expression IsolateExpression(Expression expression, object[] locals)
|
||
|
{
|
||
|
GC.KeepAlive(expression);
|
||
|
GC.KeepAlive(locals);
|
||
|
throw new NotSupportedException();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|