Permalink
Browse files

Fix for issue #260 Deserialize method in ServiceStack.Text/XmlSeriali…

…zer.cs for windows phone.
  • Loading branch information...
1 parent 066c9a0 commit c99d08cfb162db22caa44d7a9dc58f5c1a155b6a @anewton anewton committed Dec 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 c99d08c

Please sign in to comment.