Explorar el Código

Fix for classes derived from generic collections

Brad Robinson hace 10 años
padre
commit
90fb2e4e3e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      PetaJson.cs

+ 1 - 1
PetaJson.cs

@@ -1838,7 +1838,7 @@ namespace PetaJson
                 {
                     // Is this a generic list?
                     if (t.IsGenericType && t.GetGenericTypeDefinition() == tItf)
-                        return type;
+                        return t;
                 }
 
                 return null;