소스 검색

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;