From 257d09aff7ec7b858b037607869d23ec61ac75bc Mon Sep 17 00:00:00 2001
From: helongyang <647556386@qq.com>
Date: 星期二, 19 八月 2025 09:03:49 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Helper/ConvertHelper.cs | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Helper/ConvertHelper.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Helper/ConvertHelper.cs"
index dc67877..6b1bac0 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Helper/ConvertHelper.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Helper/ConvertHelper.cs"
@@ -8,9 +8,9 @@
namespace WIDESEAWCS_Common.Helper
{
- public class ConvertHelper
+ public static class ConvertHelper
{
- public static bool[] ByteToBoolArray(byte data)
+ public static bool[] ByteToBoolArray(this byte data)
{
bool[] result = new bool[8];
for (int i = 0; i < 8; i++)
@@ -20,10 +20,12 @@
return result;
}
- public static T ByteToBoolObject<T>(byte data)
+ public static T ByteToBoolObject<T>(this byte data)
{
bool[] boolArray = ByteToBoolArray(data);
+ //Array.Reverse(boolArray);
+
Type type = typeof(T);
object? obj = Activator.CreateInstance(type);
if (obj == null)
--
Gitblit v1.9.3