I'm looking into the Workflow Designer for Windows Workflow Foundation and I've got a little application running hosting the designer, toolbox and property inspector as per the instructions on MSDN: http://msdn.microsoft.com/en-us/library/dd489407.aspx
When adding a statement such as Assign for example, the expression boxes state that VB should be used for the expressions; however, using the workflow designer within a C# workflow project in Visual Studio they allow C# expressions.
How do I specify to the designer / statements / toolbox entries that C# should be used?
Thanks.
When using WF 4.5 with VS11 if you create a C# project, your expressions will be in C#, if you create a VB project they will be in VB.
You can add existing workflows with VB expressions to a C# project if you like.
How do I specify to the designer / statements / toolbox entries that C# should be used?
You do not. Ever since Workflow FOundation started as a COM based component for SQL Server IITC... VB Script was the syntax.
4.5 allows you to use C# syntax in C# projects. But 4.0 is stuck to vb script. Yes, life is unfair - I personally think this is tTHE issue. Last project we did a LOT with workflows, a whole team all C# people and then regularly the "what is the syntax to define an array" or "how do I get a reference to a type" (ie typeof equivalent) was running around ;)
4.5. Depending on timeline of the projet I would use that anyway. It is a 4.0 replacement and will be pushed by October...
C# expressions are not supported in the rehosted designer.
You can see the "details" here .
xaml的唯一区别似乎如下:
sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#"
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.