From b26dbd83baa39b6859b4a34050138a59b1c50145 Mon Sep 17 00:00:00 2001 From: uurhaa Date: Sun, 3 Mar 2024 02:50:31 +0100 Subject: [PATCH] Fix IsEnumerable --- Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs | 2 +- Assets/BetterExtensions/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs b/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs index 277da06..0b65479 100644 --- a/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs +++ b/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs @@ -41,7 +41,7 @@ public static bool IsEnumerable(this Type self) } var enumerableType = typeof(IEnumerable<>); - return self.IsGeneric(enumerableType); + return self.IsSubclassOfRawGeneric(enumerableType); } public static bool IsGeneric(this Type self, Type type) diff --git a/Assets/BetterExtensions/package.json b/Assets/BetterExtensions/package.json index d17c143..78a65dc 100644 --- a/Assets/BetterExtensions/package.json +++ b/Assets/BetterExtensions/package.json @@ -1,7 +1,7 @@ { "name": "com.uurha.betterextensions", "displayName": "Better Extensions", - "version": "1.5.8", + "version": "1.5.9", "unity": "2021.3", "description": "Unity extensions, serialize extension, async extension, string extension and UI extensions", "dependencies": {