本文整理汇总了C#中System.Linq.Expressions.Interpreter.InterpretedFrame.Push方法的典型用法代码示例。如果您正苦于以下问题:C# InterpretedFrame.Push方法的具体用法?C# InterpretedFrame.Push怎么用?C# InterpretedFrame.Push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Linq.Expressions.Interpreter.InterpretedFrame
的用法示例。
在下文中一共展示了InterpretedFrame.Push方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Run
public override int Run(InterpretedFrame frame)
{
var left = frame.Pop();
var right = frame.Pop();
if (left == null || right == null)
{
frame.Push(null);
return +1;
}
frame.Push(((Int64)left) | ((Int64)right));
return +1;
}
示例2: Run
public override int Run(InterpretedFrame frame)
{
object left = frame.Pop();
object right = frame.Pop();
if (left == null || right == null)
{
frame.Push(null);
return +1;
}
frame.Push(((int)left) | ((int)right));
return +1;
}
示例3: Run
public override int Run(InterpretedFrame frame)
{
object left = frame.Pop();
object right = frame.Pop();
if (left == null || right == null)
{
frame.Push(null);
return 1;
}
frame.Push((long)left & (long)right);
return 1;
}
示例4: Run
public override int Run(InterpretedFrame frame)
{
object obj = frame.Pop();
if (obj == null)
{
frame.Push(null);
}
else
{
frame.Push(unchecked((UInt16)((UInt16)obj - 1)));
}
return +1;
}
示例5: Run
public override int Run(InterpretedFrame frame)
{
object value = frame.Pop();
if (value == null)
{
frame.Push(null);
}
else
{
frame.Push((short)(~(short)value));
}
return 1;
}
示例6: Run
public override int Run(InterpretedFrame frame)
{
object value = frame.Pop();
if (value == null)
{
frame.Push(null);
}
else
{
frame.Push(~(long)value);
}
return +1;
}
示例7: Run
public override int Run(InterpretedFrame frame)
{
object obj = frame.Pop();
if (obj == null)
{
frame.Push(null);
}
else
{
frame.Push(unchecked(-(float)obj));
}
return 1;
}
示例8: Run
public override int Run(InterpretedFrame frame)
{
object obj = frame.Pop();
if (obj == null)
{
frame.Push(null);
}
else
{
frame.Push((ushort)(~(ushort)obj));
}
return 1;
}
示例9: Run
public override int Run(InterpretedFrame frame)
{
object value = frame.Pop();
if (value == null)
{
frame.Push(null);
}
else
{
frame.Push((bool)value ? ScriptingRuntimeHelpers.Boolean_False : ScriptingRuntimeHelpers.Boolean_True);
}
return +1;
}
示例10: Run
public override int Run(InterpretedFrame frame)
{
object obj = frame.Pop();
if (obj == null)
{
frame.Push(null);
}
else
{
frame.Push(~(long)obj);
}
return +1;
}
示例11: Run
public override int Run(InterpretedFrame frame)
{
var shift = frame.Pop();
var value = frame.Pop();
if (value == null || shift == null)
{
frame.Push(null);
}
else
{
frame.Push(((Int64)value) >> ((int)shift));
}
return +1;
}
示例12: Run
public override int Run(InterpretedFrame frame)
{
var right = frame.Pop();
var left = frame.Pop();
if (left == null || right == null)
{
frame.Push(_nullValue);
}
else
{
frame.Push(((Int16)left) > (Int16)right);
}
return +1;
}
示例13: Run
public override int Run(InterpretedFrame frame)
{
object shift = frame.Pop();
object value = frame.Pop();
if (value == null || shift == null)
{
frame.Push(null);
}
else
{
frame.Push(((long)value) << ((int)shift));
}
return +1;
}
示例14: Run
public override int Run(InterpretedFrame frame)
{
object right = frame.Pop();
object left = frame.Pop();
if (left == null || right == null)
{
frame.Push(_nullValue);
}
else
{
frame.Push(((short)left) <= (short)right);
}
return +1;
}
示例15: Run
public override int Run(InterpretedFrame frame)
{
object shift = frame.Pop();
object value = frame.Pop();
if (value == null || shift == null)
{
frame.Push(null);
}
else
{
frame.Push((short)((short)value >> (int)shift));
}
return 1;
}