Well, I fixed it by creating my own dictionary.
I noticed RSB can't really handle structs (or prolly any other
serializer for that matter), and since Dictionary contains structs it
doesn't work.
I test this with the following
public class MyKeyValuePair
{
public string Key { get; set; }
public string Value { get; set; }
}
Send this along as a property in a message:
public MyKeyValuePair kvp { get; set; }
and it'll work. Change however, the class into struct and it won't
work.
On 22 mrt, 14:48, Corey Kaylor <[email protected]> wrote:
> No, there has been no patch for dictionary serialization unfortunately. We
> would be happy to take a pull request.
>
> On Tue, Mar 22, 2011 at 7:22 AM, Mike Nichols <[email protected]>wrote:
>
>
>
> > i thot this was patched already. i avoid dictionaries, but i also use a
> > json serializer that can handle most needs. servicestack serializes
> > dictionaries too that could probably be used for serialization.
>
> > On Tue, Mar 22, 2011 at 5:39 AM, Dirk Schuermans <[email protected]
> > > wrote:
>
> >> While looking through the user group I found a thread dating back to
> >> 2009 that had the same problem as me:
>
> >> Dictionary serialization.
>
> >> I'm wondering if there's been a patch in the meanwhile for this issue
> >> or if there's a simple fix.
>
> >> (I already have a method that can parse the generic type parameters)
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Rhino Tools Dev" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >>http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Rhino Tools Dev" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/rhino-tools-dev?hl=en.- Tekst uit
> >oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en.