本文整理汇总了C#中IronRuby.Runtime.BlockParam.GetUnwinderResult方法的典型用法代码示例。如果您正苦于以下问题:C# BlockParam.GetUnwinderResult方法的具体用法?C# BlockParam.GetUnwinderResult怎么用?C# BlockParam.GetUnwinderResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IronRuby.Runtime.BlockParam
的用法示例。
在下文中一共展示了BlockParam.GetUnwinderResult方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: YieldSplatNRhs
public static object YieldSplatNRhs(object[]/*!*/ args, object splattee, object rhs, object self, BlockParam/*!*/ blockParam) {
object result;
var proc = blockParam.Proc;
try {
result = proc.Dispatcher.InvokeSplatRhs(blockParam, self, args, splattee, rhs);
} catch (EvalUnwinder evalUnwinder) {
result = blockParam.GetUnwinderResult(evalUnwinder);
}
return result;
}
示例2: YieldSplat4
public static object YieldSplat4(object arg1, object arg2, object arg3, object arg4, object splattee, object self, BlockParam/*!*/ blockParam) {
object result;
var proc = blockParam.Proc;
try {
result = proc.Dispatcher.InvokeSplat(blockParam, self, arg1, arg2, arg3, arg4, splattee);
} catch (EvalUnwinder evalUnwinder) {
result = blockParam.GetUnwinderResult(evalUnwinder);
}
return result;
}
示例3: YieldNoAutoSplat1
// YieldNoAutoSplat1 uses InvokeNoAutoSplat instead of Invoke (used by Call1)
internal static object YieldNoAutoSplat1(object arg1, object self, BlockParam/*!*/ blockParam) {
object result;
var proc = blockParam.Proc;
try {
result = proc.Dispatcher.InvokeNoAutoSplat(blockParam, self, arg1);
} catch (EvalUnwinder evalUnwinder) {
result = blockParam.GetUnwinderResult(evalUnwinder);
}
return result;
}
示例4: YieldN
public static object YieldN(object[]/*!*/ args, object self, BlockParam/*!*/ blockParam) {
Debug.Assert(args.Length > BlockDispatcher.MaxBlockArity);
object result;
var proc = blockParam.Proc;
try {
result = proc.Dispatcher.Invoke(blockParam, self, args);
} catch (EvalUnwinder evalUnwinder) {
result = blockParam.GetUnwinderResult(evalUnwinder);
}
return result;
}
示例5: Yield0
public static object Yield0(object self, BlockParam/*!*/ blockParam) {
object result;
var proc = blockParam.Proc;
try {
result = proc.Dispatcher.Invoke(blockParam, self);
} catch(EvalUnwinder evalUnwinder) {
result = blockParam.GetUnwinderResult(evalUnwinder);
}
return result;
}