|
|
@@ -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; |
|
|
|
} |
|
|
|