Marshal in Gadgeteer - Doesn;t work, looking for alternatives?

the marshaling seems not to be supported in Gadgeteer.
I’m looking to convert a struct to a byte array and vice versa.
something like this.

is this planned to be supported?
Support System.Runtime.InteropServices.Marshal

It’s actually the framework, not Gadgeteer, that would implement that.

The way to give this feedback would be to go to and create an issue there.

Meanwhile search the forum. This has been discussed before and there are some suggestions on how to do that with what is available now: