derek-will / SocketCANSharp

.NET managed wrapper for SocketCAN on Linux
BSD 3-Clause "New" or "Revised" License
54 stars 13 forks source link

Make Frame a property and not a field within BcmCanSingleMessage and BcmCanFdSingleMessage classes #7

Closed derek-will closed 2 years ago

derek-will commented 2 years ago

This was probably due to a copy & paste error when adapting the BcmCanMessage class. The Frames field in BcmCanMessage has to be a field so that the MarshalAsAttribute can be applied, but this is not the case for Frame within the BcmCanSingleMessage class.

derek-will commented 2 years ago

Same is true for BcmCanFdSingleMessage class and the Frame field that should be a property.