From 1f91e757c27c0c4cda7137b96549123bff749631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=85=BE=E7=8C=AB=E8=B7=83?= <1043137532@qq.com> Date: Wed, 1 Jul 2026 07:17:49 +0800 Subject: [PATCH] * --- .../GeneralExtension.cs => Utils/GeneralUtils.cs} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename Shared/{Extensions/GeneralExtension.cs => Utils/GeneralUtils.cs} (69%) diff --git a/Shared/Extensions/GeneralExtension.cs b/Shared/Utils/GeneralUtils.cs similarity index 69% rename from Shared/Extensions/GeneralExtension.cs rename to Shared/Utils/GeneralUtils.cs index 4187af5..25b6cbb 100644 --- a/Shared/Extensions/GeneralExtension.cs +++ b/Shared/Utils/GeneralUtils.cs @@ -1,10 +1,10 @@ -namespace MeloongCore.Extensions; -public static class GeneralExtension { +namespace MeloongCore; +public static class GeneralUtils { /// /// 判断对象是否为指定泛型类型的实例。 /// - public static bool IsGenericInstanceOf(this object? instance, Type genericTypeDefinition) { + public static bool IsGenericInstanceOf(object? instance, Type genericTypeDefinition) { if (instance is null) return false; for (var type = instance.GetType(); type is not null; type = type.BaseType) { if (type.IsGenericType && type.GetGenericTypeDefinition() == genericTypeDefinition) return true;