Dictionarys with MSRS 1.5

Hello,

in my implementations with MSRS 1.0 I used a lot of dictionarys for interaction between the services

Now I tried to migrate to version 1.5.

For every dictionary<string, float> used with a [DataMember] attribute I get the following post-build error:

Code Snippet

KUKA.Transformation.Proxy.TransformationTypes.cs(496,43): error CS1502: Die beste übereinstimmung für die überladene Methode System.Collections.Generic.Dictionary<string,float>.this[string] hat einige ungültige Argumente.

KUKA.Transformation.Proxy.TransformationTypes.cs(496,50): error CS1503: Das Argument 1 kann nicht von int in string konvertiert werden.

Sorry, for the german error, but I use a german visual studio version...

Is it impossible to use Dictionaries with MSRS 1.5?

If so, what workaround do you propose?

Thank you,

S@ilor

[1086 byte] By [theSailor] at [2008-2-21]
# 1
Yes, this was working in 1.0. We plan to fix it again soon.
DaveLee at 2007-9-25 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Decentralized Software Services (DSS)...
# 2
As a work around you can use two lists, one for the values, one for the keys, and then at runtime, recreate the dictionary from the two lists
GeorgeChrysanthakopoulos at 2007-9-25 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Decentralized Software Services (DSS)...
# 3
Another problem is, the you can't serialize a state that contains Dictionary's...
theSailor at 2007-9-25 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Decentralized Software Services (DSS)...
# 4
theSailor wrote:
Another problem is, the you can't serialize a state that contains Dictionary's...

Before I try to use dictionaries in my own states: is this fixed in 1.5 release?
AlexanderDahl at 2007-9-25 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Decentralized Software Services (DSS)...
# 5
yes we support dictionaries now

GeorgeChrysanthakopoulos at 2007-9-25 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Decentralized Software Services (DSS)...

Microsoft Robotics Studio

Site Classified