Permalink
Browse files

Merge pull request #46 from bherila/master

Add support for ISet<T> to TypeCoercionUtility
  • Loading branch information...
2 parents 6dd3fa0 + b4f351d commit 1c72c653a2c93b9733e1505417b8ff20ab483b68 @mckamey mckamey committed on GitHub Jul 6, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/JsonFx/Serialization/TypeCoercionUtility.cs
@@ -737,6 +737,11 @@ private static Type ResolveInterfaceType(Type targetType)
Type[] genericArgs = targetType.GetGenericArguments();
targetType = typeof(List<>).MakeGenericType(genericArgs);
}
+ else if (genericType == typeof(ISet<>))
+ {
+ Type[] genericArgs = targetType.GetGenericArguments();
+ targetType = typeof(HashSet<>).MakeGenericType(genericArgs);
+ }
else if (genericType == typeof(IDictionary<,>))
{
Type[] genericArgs = targetType.GetGenericArguments();

0 comments on commit 1c72c65

Please sign in to comment.