本文整理汇总了C#中System.Management.Automation.Interpreter.InterpretedFrame.Pop方法的典型用法代码示例。如果您正苦于以下问题:C# InterpretedFrame.Pop方法的具体用法?C# InterpretedFrame.Pop怎么用?C# InterpretedFrame.Pop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Management.Automation.Interpreter.InterpretedFrame
的用法示例。
在下文中一共展示了InterpretedFrame.Pop方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Run
public override int Run(InterpretedFrame frame)
{
object value = frame.Pop();
object self = frame.Pop();
_field.SetValue(self, value);
return +1;
}
示例2: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Pop();
object obj3 = frame.Pop();
frame.Push(ScriptingRuntimeHelpers.BooleanToObject((obj3 != null) && (obj3.GetType() == obj2)));
return 1;
}
示例3: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Pop();
object obj3 = frame.Pop();
this._field.SetValue(obj3, obj2);
return 1;
}
示例4: Run
public override int Run(InterpretedFrame frame)
{
if ((bool) frame.Pop())
{
return base._offset;
}
return 1;
}
示例5: Run
public override int Run(InterpretedFrame frame)
{
Exception exception = (Exception) frame.Pop();
if (this._rethrow)
{
throw new RethrowException();
}
throw exception;
}
示例6: Run
public override int Run(InterpretedFrame frame)
{
int num;
if (!this._cases.TryGetValue((int) frame.Pop(), out num))
{
return 1;
}
return num;
}
示例7: Run
public override int Run(InterpretedFrame frame)
{
IStrongBox[] boxes = new IStrongBox[this._count];
for (int i = boxes.Length - 1; i >= 0; i--)
{
boxes[i] = (IStrongBox) frame.Pop();
}
frame.Push(System.Management.Automation.Interpreter.RuntimeVariables.Create(boxes));
return 1;
}
示例8: Run
public override int Run(InterpretedFrame frame)
{
Debug.Assert(_offset != Unknown);
if (!(bool)frame.Pop())
{
return _offset;
}
return +1;
}
示例9: Run
public override int Run(InterpretedFrame frame)
{
int[] lengths = new int[this._rank];
for (int i = this._rank - 1; i >= 0; i--)
{
lengths[i] = (int) frame.Pop();
}
Array array = Array.CreateInstance(this._elementType, lengths);
frame.Push(array);
return 1;
}
示例10: Run
public override int Run(InterpretedFrame frame)
{
StrongBox<object>[] boxArray;
if (this.ConsumedStack > 0)
{
boxArray = new StrongBox<object>[this.ConsumedStack];
for (int i = boxArray.Length - 1; i >= 0; i--)
{
boxArray[i] = (StrongBox<object>) frame.Pop();
}
}
else
{
boxArray = null;
}
Delegate delegate2 = this._creator.CreateDelegate(boxArray);
frame.Push(delegate2);
return 1;
}
示例11: Run
public override int Run(InterpretedFrame frame)
{
object obj2;
object[] parameters = new object[this._argCount];
for (int i = this._argCount - 1; i >= 0; i--)
{
parameters[i] = frame.Pop();
}
try
{
obj2 = this._constructor.Invoke(parameters);
}
catch (TargetInvocationException exception)
{
ExceptionHelpers.UpdateForRethrow(exception.InnerException);
throw exception.InnerException;
}
frame.Push(obj2);
return 1;
}
示例12: Run
public override int Run(InterpretedFrame frame)
{
frame.Push(((bool) frame.Pop()) != ((bool) frame.Pop()));
return 1;
}
示例13: Run
public override int Run(InterpretedFrame frame)
{
var ret = new IStrongBox[_count];
for (int i = ret.Length - 1; i >= 0; i--)
{
ret[i] = (IStrongBox)frame.Pop();
}
frame.Push(RuntimeVariables.Create(ret));
return +1;
}
示例14: Run
public override int Run(InterpretedFrame frame)
{
UInt16 right = (UInt16)frame.Pop();
frame.Push(((UInt16)frame.Pop()) > right);
return +1;
}
示例15: Run
public override int Run(InterpretedFrame frame)
{
frame.Push(((UInt16)frame.Pop()) == ((UInt16)frame.Pop()));
return +1;
}