当前位置: 首页>>代码示例>>C#>>正文


C# InterpretedFrame.Push方法代码示例

本文整理汇总了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;
 }
开发者ID:geoffkizer,项目名称:corefx,代码行数:12,代码来源:OrInstruction.cs

示例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;
 }
开发者ID:alessandromontividiu03,项目名称:corefx,代码行数:12,代码来源:OrInstruction.cs

示例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;
 }
开发者ID:chcosta,项目名称:corefx,代码行数:12,代码来源:AndInstruction.cs

示例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;
 }
开发者ID:geoffkizer,项目名称:corefx,代码行数:13,代码来源:DecrementInstruction.cs

示例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;
 }
开发者ID:chcosta,项目名称:corefx,代码行数:13,代码来源:NotInstruction.cs

示例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;
 }
开发者ID:wangyanjun,项目名称:corefx,代码行数:13,代码来源:NotInstruction.cs

示例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;
 }
开发者ID:chcosta,项目名称:corefx,代码行数:13,代码来源:NegateInstruction.cs

示例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;
 }
开发者ID:chcosta,项目名称:corefx,代码行数:13,代码来源:OnesComplementInstruction.cs

示例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;
 }
开发者ID:alessandromontividiu03,项目名称:corefx,代码行数:13,代码来源:NotInstruction.cs

示例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;
 }
开发者ID:wangyanjun,项目名称:corefx,代码行数:13,代码来源:OnesComplementInstruction.cs

示例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;
 }
开发者ID:geoffkizer,项目名称:corefx,代码行数:14,代码来源:RightShiftInstruction.cs

示例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;
 }
开发者ID:geoffkizer,项目名称:corefx,代码行数:14,代码来源:GreaterThanInstruction.cs

示例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;
 }
开发者ID:dotnet,项目名称:corefx,代码行数:14,代码来源:LeftShiftInstruction.cs

示例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;
 }
开发者ID:wangyanjun,项目名称:corefx,代码行数:14,代码来源:LessThanOrEqualInstruction.cs

示例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;
 }
开发者ID:chcosta,项目名称:corefx,代码行数:14,代码来源:RightShiftInstruction.cs


注:本文中的System.Linq.Expressions.Interpreter.InterpretedFrame.Push方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。