本文整理汇总了C#中CellProcessor.Invoke方法的典型用法代码示例。如果您正苦于以下问题:C# CellProcessor.Invoke方法的具体用法?C# CellProcessor.Invoke怎么用?C# CellProcessor.Invoke使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CellProcessor
的用法示例。
在下文中一共展示了CellProcessor.Invoke方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoInvoke
public TypedValue DoInvoke(CellProcessor processor)
{
var targetInstance = new TypedValue(target);
var targetObjectProvider = target as TargetObjectProvider;
var name = GetMemberName(processor);
return processor.Invoke(
targetObjectProvider != null ? new TypedValue(targetObjectProvider.GetTargetObject()) : targetInstance,
name, parameters);
}
示例2: Interpret
public void Interpret(CellProcessor processor, Tree<Cell> table)
{
processor.TestStatus.TableCount--;
TypedValue result = processor.Invoke(
new TypedValue(processor.Configuration.GetItem(table.Branches[0].Branches[1].Value.Text)),
table.Branches[0].Branches[2].Value.Text,
new CellTree());
result.ThrowExceptionIfNotValid();
if (result.IsVoid) return;
table.Branches[0].Branches[2].Value.SetAttribute(CellAttribute.Folded, result.ValueString);
}
示例3: ComputeRow
void ComputeRow(CellProcessor processor, Tree<Cell> row) {
var memberName = processor.ParseTree<Cell, MemberName>(headerRow.Branches.Last()).WithNamedParameters();
var parameterList = new List<Tree<Cell>>();
for (var i = 0; i < headerRow.Branches.Count - 1; i++) {
parameterList.Add(new CellTreeLeaf(new GracefulName(headerRow.ValueAt(i).Text).ToString()));
parameterList.Add(row.Branches[i]);
}
var result = processor.Invoke(processor.CallStack.DomainAdapter, memberName,
new EnumeratedTree<Cell>(parameterList));
processor.Check(result, row.Branches.Last());
}
示例4: ComputeRow
void ComputeRow(CellProcessor processor, Tree<Cell> row)
{
var memberName = MemberName.NamedParameterPrefix + processor.ParseTree<Cell, MemberName>(headerRow.Branches.Last());
var parameterList = new List<Tree<Cell>>();
for (var i = 0; i < headerRow.Branches.Count - 1; i++) {
parameterList.Add(new CellTreeLeaf(new GracefulName(headerRow.Branches[i].Value.Text).ToString()));
parameterList.Add(row.Branches[i]);
}
var result = processor.Invoke(new TypedValue(SystemUnderTest), memberName,
new EnumeratedTree<Cell>(parameterList));
new CellOperationImpl(processor).Check(result, row.Branches.Last());
}