當前位置: 首頁>>代碼示例>>C#>>正文


C# Interpreter.InterpretedFrame類代碼示例

本文整理匯總了C#中System.Management.Automation.Interpreter.InterpretedFrame的典型用法代碼示例。如果您正苦於以下問題:C# InterpretedFrame類的具體用法?C# InterpretedFrame怎麽用?C# InterpretedFrame使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


InterpretedFrame類屬於System.Management.Automation.Interpreter命名空間,在下文中一共展示了InterpretedFrame類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Run

 public override int Run(InterpretedFrame frame)
 {
     int index = frame.StackIndex - this._argumentCount;
     frame.Data[index] = this._site.Target(this._site, new ArgumentArray(frame.Data, index, this._argumentCount));
     frame.StackIndex = index + 1;
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:7,代碼來源:DynamicSplatInstruction.cs

示例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;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:7,代碼來源:TypeEqualsInstruction.cs

示例3: Run

 public override int Run(InterpretedFrame frame)
 {
     object obj2 = frame.Pop();
     object obj3 = frame.Pop();
     this._field.SetValue(obj3, obj2);
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:7,代碼來源:StoreFieldInstruction.cs

示例4: Enter

 internal System.Management.Automation.Interpreter.ThreadLocal<InterpretedFrame>.StorageInfo Enter()
 {
     var storageInfo = CurrentFrame.GetStorageInfo();
     this._parent = storageInfo.Value;
     storageInfo.Value = this;
     return storageInfo;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:7,代碼來源:InterpretedFrame.cs

示例5: Run

 public override int Run(InterpretedFrame frame)
 {
     object value = frame.Pop();
     object self = frame.Pop();
     _field.SetValue(self, value);
     return +1;
 }
開發者ID:40a,項目名稱:PowerShell,代碼行數:7,代碼來源:FieldOperations.cs

示例6: Run

 public override int Run(InterpretedFrame frame)
 {
     object obj2 = frame.Data[frame.StackIndex - 2];
     object obj3 = frame.Data[frame.StackIndex - 1];
     frame.Data[frame.StackIndex - 2] = (short) (((short) obj2) * ((short) obj3));
     frame.StackIndex--;
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:8,代碼來源:MulOvfInstruction.cs

示例7: Run

 public override int Run(InterpretedFrame frame)
 {
     if ((bool) frame.Pop())
     {
         return base._offset;
     }
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:8,代碼來源:BranchTrueInstruction.cs

示例8: Run

 public override int Run(InterpretedFrame frame)
 {
     object obj2 = frame.Data[frame.StackIndex - 2];
     object obj3 = frame.Data[frame.StackIndex - 1];
     frame.Data[frame.StackIndex - 2] = ((double) obj2) + ((double) obj3);
     frame.StackIndex--;
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:8,代碼來源:AddOvfInstruction.cs

示例9: Run

 public override int Run(InterpretedFrame frame)
 {
     object l = frame.Data[frame.StackIndex - 2];
     object r = frame.Data[frame.StackIndex - 1];
     frame.Data[frame.StackIndex - 2] = (UInt32)unchecked((UInt32)l - (UInt32)r);
     frame.StackIndex--;
     return +1;
 }
開發者ID:40a,項目名稱:PowerShell,代碼行數:8,代碼來源:SubInstruction.cs

示例10: Run

 public override int Run(InterpretedFrame frame)
 {
     if (frame.Peek() != null)
     {
         return base._offset;
     }
     return 1;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:8,代碼來源:CoalescingBranchInstruction.cs

示例11: Run

 public override int Run(InterpretedFrame frame)
 {
     object l = frame.Data[frame.StackIndex - 2];
     object r = frame.Data[frame.StackIndex - 1];
     frame.Data[frame.StackIndex - 2] = (UInt16)((UInt16)l / (UInt16)r);
     frame.StackIndex--;
     return 1;
 }
開發者ID:40a,項目名稱:PowerShell,代碼行數:8,代碼來源:DivInstruction.cs

示例12: Run

 public override int Run(InterpretedFrame frame)
 {
     frame.PopPendingContinuation();
     if (!frame.IsJumpHappened())
     {
         return 1;
     }
     return frame.YieldToPendingContinuation();
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:9,代碼來源:LeaveFinallyInstruction.cs

示例13: GotoHandler

 internal int GotoHandler(InterpretedFrame frame, object exception, out ExceptionHandler handler)
 {
     handler = this._handlers.FirstOrDefault<ExceptionHandler>(t => t.Matches(exception.GetType()));
     if (handler == null)
     {
         return 0;
     }
     return frame.Goto(handler.LabelIndex, exception, true);
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:9,代碼來源:TryCatchFinallyHandler.cs

示例14: Run

 public override int Run(InterpretedFrame frame)
 {
     int num;
     if (!this._cases.TryGetValue((int) frame.Pop(), out num))
     {
         return 1;
     }
     return num;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:9,代碼來源:SwitchInstruction.cs

示例15: Run

 public override int Run(InterpretedFrame frame)
 {
     Exception exception = (Exception) frame.Pop();
     if (this._rethrow)
     {
         throw new RethrowException();
     }
     throw exception;
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:9,代碼來源:ThrowInstruction.cs


注:本文中的System.Management.Automation.Interpreter.InterpretedFrame類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。