瀏覽代碼

Fix for classes derived from generic collections

Brad Robinson 10 年之前
父節點
當前提交
90fb2e4e3e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;