Considering a Windows Workflow Foundation code activity such as this:
public sealed class MyActivity : CodeActivity
{
public InArgument<string> SomeValue { get; set; }
protected override void Execute(CodeActivityContext context)
{
}
}
Is there any difference between
var x = context.GetValue(SomeValue);
and
var x = SomeValue.Get(context);
They will return exactly the same value
string x = context.GetValue(SomeValue);
subsequently it can be written as string x = SomeValue.Get(context);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.