restsharp/RestSharp — pull request #248 by BerndK (2012-04-15 20:14:19+00:00)
Title: XmlAttributeDeserializer modified to handle InlineList with attributes

Hi,
First: I'm new to github and new to RestSharp, so please excuse if I do some things in a wrong way.

I wanted to use RestSharp to access MusicBrainz. I had problems while Deserializing the response, because the items are named "artist-credit" which is not a valid C# ident, so I found the Attributes. But at the end this class drove me crazy. I started debugging and modified some lines. I found that the tests do not cover lists combined with other names modified with attributes.
I added a Test and some example data.
What I absolutely not understand is that there are XmlTests "With Match" and "Without Math", but they use exactly the same implementation???, There are no or few Tests for DeserializeAsAttributes?!

conclusion: I think i did find some bugs, please have a look at my commit, perhaps this is use ful for the master branch. Perhaps you can do a cherry pick (I did some other changes too (the possibility to skip UrlEncoding of Parameters).

Please let me know what mistakes I made in the workflow.
Thanks, Bernd.