Skip to content

Commit

Permalink
Merge pull request ServiceStack#70 from mj1856/master
Browse files Browse the repository at this point in the history
StringCollection does not exist in silverlight
  • Loading branch information
mythz committed Feb 11, 2012
2 parents c98c033 + be88330 commit 102df1a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ public static ParseStringDelegate GetParseFn()
return GetGenericStackParseFn();
}

#if !SILVERLIGHT
if (typeof(T) == typeof(StringCollection))
{
return ParseStringCollection<TSerializer>;
}
#endif

return GetGenericEnumerableParseFn();
}
Expand All @@ -66,6 +68,7 @@ public static Queue<int> ParseIntQueue(string value)
return new Queue<int>(parse);
}

#if !SILVERLIGHT
public static StringCollection ParseStringCollection<TSerializer>(string value) where TSerializer : ITypeSerializer
{
if ((value = DeserializeListWithElements<TSerializer>.StripList(value)) == null) return null;
Expand All @@ -83,6 +86,7 @@ public static StringCollection ToStringCollection(List<string> items)
}
return to;
}
#endif

internal static ParseStringDelegate GetGenericQueueParseFn()
{
Expand Down

0 comments on commit 102df1a

Please sign in to comment.