Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Fix for issue #260 Deserialize method in ServiceStack.Text/XmlSeriali…
Browse files Browse the repository at this point in the history
…zer.cs for windows phone.
  • Loading branch information
Allen committed Dec 23, 2012
1 parent 066c9a0 commit c99d08c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ServiceStack.Text/XmlSerializer.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private static object Deserialize(string xml, Type type, XmlDictionaryReaderQuot
try try
{ {
#if WINDOWS_PHONE #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); var serializer = new DataContractSerializer(type);
return serializer.ReadObject(reader); return serializer.ReadObject(reader);
Expand Down

0 comments on commit c99d08c

Please sign in to comment.