You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -295,7 +295,9 @@ namespace System.Runtime.Serialization.Json
|
||||
{
|
||||
if (type.IsArray)
|
||||
return type.GetElementType ();
|
||||
|
||||
|
||||
if (type.IsGenericType && type.GetGenericTypeDefinition () == typeof (IEnumerable<>))
|
||||
return type.GetGenericArguments () [0];
|
||||
var inter = type.GetInterface ("System.Collections.Generic.IEnumerable`1", false);
|
||||
if (inter != null)
|
||||
return inter.GetGenericArguments () [0];
|
||||
|
Reference in New Issue
Block a user