pry 2 年之前
父節點
當前提交
0e4af67208
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      BPASmartClient.S7Net/EntityClassResolution.cs

+ 4
- 3
BPASmartClient.S7Net/EntityClassResolution.cs 查看文件

@@ -219,14 +219,15 @@ namespace BPASmartClient.S7Net
break;
default:
{
//if (propertyType.IsClass) numBytes += 2;
object obj2 = Activator.CreateInstance(propertyType);
numBytes = FromBytes(obj2, bytes, numBytes);

numBytes = Math.Ceiling(numBytes);
if (numBytes / 2.0 - Math.Floor(numBytes / 2.0) > 0.0)
{
numBytes += 1.0;
}
object obj2 = Activator.CreateInstance(propertyType);
numBytes = FromBytes(obj2, bytes, numBytes);

obj = obj2;
break;
}


Loading…
取消
儲存