Not all generic types could be resolved error
Hi,
I have a BufferTask activity in a Workflow, the result of which I want to be a graphic of the type System.Collections.Generic.IList<ESRI.ArcGIS.Client.Graphic>
But when I try to set up a variable to hold the result and then navigate to this type in the 'Browse and Select .Net Type' dialog box I get the error "Not all generic types could be resolved" and it won't allow me to select it.
This also seems to happen with many other types in the same System.Collections namespace
Can anyone tell me what is wrong?
Thanks,
Steve
-
I resolved this by messing with the xaml behind the Workflow like below
<Sequence.Variables>
<Variable x:TypeArguments="scg:IList(esri:Graphic)" Name="graphics" />
</Sequence.Variables>Doesn't seem to have a problem doing it this way.
Steve
0 -
You don't have to mess with the xaml to do this. If you look closely, you will see that when you browse for types and select a generic type, there will be an additional dropdown where you can select the specific type to use.
You should see something like 'System.Collections.Generic.List< ... >' at the top of the dialog, and there will be a dropdown to select the type between the angle brackets.
0 -
The only thing I see in the additional dropdown are the types I have selected before in the current Workflow. It doesn't seem to have any relation to the generic type selected in the 'Type Name' box. So when I have 'System.Collections.Generic.List< ... > in the top dialog I get values such as the following in the additional dropdown
String, Int32, ESRI.ArcGIS.Client.Geometry.Geometry, ESRI.ArcGIS.Client.Tasks.Address, Geocortex.Forms.Client.DataItem
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer