Permalink
Browse files

Merge pull request #261 from anewton/master

Fix for issue #260, Deserialize xml for Windows Phone
  • Loading branch information...
2 parents 066c9a0 + c99d08c commit a2e297d3f06ee9ed4c5362f1e70069e91dc904cc @mythz mythz committed Dec 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ServiceStack.Text/XmlSerializer.cs
View
3 src/ServiceStack.Text/XmlSerializer.cs
@@ -36,7 +36,8 @@ private static object Deserialize(string xml, Type type, XmlDictionaryReaderQuot
try
{
#if WINDOWS_PHONE
- using (var reader = XmlDictionaryReader.Create(xml))
+ StringReader stringReader = new StringReader(xml);
+ using (var reader = XmlDictionaryReader.Create(stringReader))
{
var serializer = new DataContractSerializer(type);
return serializer.ReadObject(reader);

0 comments on commit a2e297d

Please sign in to comment.