update GetBoolValue

This commit is contained in:
Kimdiego2098
2023-08-29 12:40:21 +08:00
parent cd1288afdc
commit 8491ed296e

View File

@@ -24,6 +24,8 @@ public static class ReadWriteDevicesExHelpers
/// <returns></returns>
public static bool GetBoolValue(this string value)
{
if (value == null)
return false;
if (value == "1")
return true;
if (value == "0")