S7NetPlus / s7netplus

S7.NET+ -- A .NET library to connect to Siemens Step7 devices
MIT License
1.34k stars 589 forks source link

Read Struct arrays #374

Closed coollyteng closed 3 years ago

coollyteng commented 3 years ago

ReadStruct->Can the ReadStruct function read struct arrays?->Struct[]

mycroes commented 3 years ago

No it can't. I'm not saying it'll never be added, but you'd have to define the array length using attributes or assume the array length. The latter is really error-prone, given the C# experience of the S7NetPlus userbase that's something I'd rather avoid.