0
下面我在Microsoft-Windows-Workflow-4-0-cookbook中练习了一些练习中的一些代码片段。我不明白lambda表达式。 aec在以下上下文中是什么(aec => testClass)。工具提示表明这是一个活动上下文。它的目的是什么?Windows Workflow Foundation InvokeMethod类
TestClass testClass = new TestClass();
Variable<string> resultValue = new Variable<string>();
return new Sequence()
{
Variables = { resultValue },
Activities = {
new WriteLine() {Text = "... Invoke void Method()"},
new InvokeMethod() { TargetObject = new InArgument<TestClass> (aec=>testClass),
MethodName = "Method", },
http://stackoverflow.com/questions/290061/what-does-the-syntax-in-c-sharp-mean – DotNetHitMan