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)); } ///