views:

22

answers:

0

I have developed a custom UITypeEditor for a WWF project, and the custom property (a Dictionary) is being persisted through the resources file of the main workflow. So far, so good!

Problem is, when I change the property value, and rebuild, I get no errors but the designer stops showing anything, and instead spews out

The name 'dictionary_21' is already used by another object.

The autogenerated code to load the dictionary from resources is:

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWorkflow));
System.Collections.Generic.Dictionary<int, string> dictionary_21 = new System.Collections.Generic.Dictionary<int, string>();
dictionary_21 = ((System.Collections.Generic.Dictionary<int, string>)(resources.GetObject("LoadSubscriptionsByList")));
this.LoadSubscriptionsByList.ServiceIdList = dictionary_21;

Which is perfectly OK. But the designer is apparently very picky about this... I can't find any other reference to dictionary_21 in the solution...

Help?