From ab64a77715b39c8d64d7081eec5b1e28ca7dbd19 Mon Sep 17 00:00:00 2001 From: Blank Date: Thu, 30 Jul 2026 05:57:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(hash):=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=86=85=E9=83=A8=E7=B1=BB=E5=9E=8B=E5=93=88=E5=B8=8C=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linear: GFX-210 --- GameFrameX.Foundation.Hash/XxHashHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameFrameX.Foundation.Hash/XxHashHelper.cs b/GameFrameX.Foundation.Hash/XxHashHelper.cs index 74761c6..c415c3b 100644 --- a/GameFrameX.Foundation.Hash/XxHashHelper.cs +++ b/GameFrameX.Foundation.Hash/XxHashHelper.cs @@ -96,7 +96,7 @@ public static uint Hash32(string text) public static uint Hash32(Type type) { ArgumentNullException.ThrowIfNull(type, nameof(type)); - return InternalXxHashHelper.Hash32(type); + return InternalXxHashHelper.Hash32ForType(type); } /// @@ -519,7 +519,7 @@ public static uint Hash32(string text) /// 32位无符号整数形式的哈希值 / The 32-bit hash value as an unsigned integer /// 为 null 时抛出 / Thrown when is null [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint Hash32(Type type) + public static uint Hash32ForType(Type type) { ArgumentNullException.ThrowIfNull(type, nameof(type)); return Hash32(type.FullName); @@ -534,7 +534,7 @@ public static uint Hash32(Type type) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint Hash32() { - return Hash32(typeof(T)); + return Hash32ForType(typeof(T)); } ///