From 37f97d75d225647512b138f10008be06b0d59b72 Mon Sep 17 00:00:00 2001 From: uurhaa Date: Thu, 29 Feb 2024 22:22:57 +0100 Subject: [PATCH] Update GetCollectionElementType --- Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs | 2 +- Assets/BetterExtensions/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs b/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs index 00603e1..f666a0a 100644 --- a/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs +++ b/Assets/BetterExtensions/Runtime/Extensions/TypeExtensions.cs @@ -259,7 +259,7 @@ public static bool IsSubclassOfAnyRawGeneric(this Type self, IEnumerable g return false; } - public static Type GetElementType(this Type self) + public static Type GetCollectionElementType(this Type self) { if (self == null) { diff --git a/Assets/BetterExtensions/package.json b/Assets/BetterExtensions/package.json index dd8a90b..d3221f6 100644 --- a/Assets/BetterExtensions/package.json +++ b/Assets/BetterExtensions/package.json @@ -1,8 +1,8 @@ { "name": "com.uurha.betterextensions", "displayName": "Better Extensions", - "version": "1.5.5", - "unity": "2020.1", + "version": "1.5.6", + "unity": "2021.3", "description": "Unity extensions, serialize extension, async extension, string extension and UI extensions", "dependencies": { "com.tdw.better.internal.core": "0.0.2"