From d0fe4259f79fccb7578fa756144c9a0284791d17 Mon Sep 17 00:00:00 2001 From: uurha Date: Sun, 3 Mar 2024 13:20:25 +0000 Subject: [PATCH] Merge pull request #67 from techno-dwarf-works/dev Fix IsArrayOrList --- Runtime/Extensions/TypeExtensions.cs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Extensions/TypeExtensions.cs b/Runtime/Extensions/TypeExtensions.cs index 0f83442..d539630 100644 --- a/Runtime/Extensions/TypeExtensions.cs +++ b/Runtime/Extensions/TypeExtensions.cs @@ -24,7 +24,7 @@ public static bool IsArrayOrList(this Type self) } var listType = typeof(List<>); - return self.IsGeneric(listType); + return listType.IsAssignableFromRawGeneric(self); } public static bool IsEnumerable(this Type self) diff --git a/package.json b/package.json index 4d4b311..0a9595f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.uurha.betterextensions", "displayName": "Better Extensions", - "version": "1.5.92", + "version": "1.5.93", "unity": "2021.3", "description": "Unity extensions, serialize extension, async extension, string extension and UI extensions", "dependencies": {