From b6c13088cd9ddecf8ed52d30586bd7b429041d01 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:44:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(GFramework.Core):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?ScopedArray=E7=9A=84IDisposable=E6=8E=A5=E5=8F=A3=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从ScopedArray结构体中移除IDisposable接口 - 保留数组池管理和自动释放功能 - 简化类型定义以提高性能表现 --- GFramework.Core/Extensions/ArrayPoolExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Core/Extensions/ArrayPoolExtensions.cs b/GFramework.Core/Extensions/ArrayPoolExtensions.cs index 80a070a..6bb62f0 100644 --- a/GFramework.Core/Extensions/ArrayPoolExtensions.cs +++ b/GFramework.Core/Extensions/ArrayPoolExtensions.cs @@ -89,7 +89,7 @@ public static class ArrayPoolExtensions /// 可自动释放的数组包装器 /// /// 数组元素类型 - public ref struct ScopedArray : IDisposable + public ref struct ScopedArray { private readonly ArrayPool _pool; private readonly bool _clearOnReturn;