Skip to content

Commit 56bf81e

Browse files
committed
Also no type descriptors in windows phone
1 parent 9c8d1cd commit 56bf81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp/Deserializers/XmlDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private void Map(object x, XElement root)
263263

264264
private static bool TryGetFromString(string inputString, out object result, Type type)
265265
{
266-
#if !SILVERLIGHT
266+
#if !SILVERLIGHT || WINDOWS_PHONE
267267
var converter = TypeDescriptor.GetConverter(type);
268268
if (converter.CanConvertFrom(typeof(string)))
269269
{

0 commit comments

Comments
 (0)