Array argrument of XAML activity
Hi all!
I'm working with Windows Workflow Foundation 4. I created an activity called MyActivity with the VS 2010 designer, so it creates a XAML file for it. I added an argument of the type string[] to this activity. So the interesting line of the XAML is as follows:
<x:Property Name="stringArray" Type="InArgument(s:String[])" />
Now create an instance of this activity and assign a value to the argument:
MyActivity activity= new MyActivity ();
activity.stringArray= new[] {"foo"};
The second line gets marked by R# 5.1.1753.4 with an error saying "Cannot convert source type 'string[]' to target type '???'" while VS compiles perfectly.
Is this a bug? Or am I doing something wrong?
Thanks in advance,
Malte
Please sign in to leave a comment.
Hello Malte,
This seems to be a bug. I've created a bug-report in our tracker: http://youtrack.jetbrains.net/issue/RSRP-203632
and you're welcome to monitor its status. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"