DEV Community


Discussion on: Calling Rust from C#

living_syn profile image
Jeremy Mill Author

Still, Marshall as book "should" work, correct?

Thread Thread
yaketycats profile image

bool on the Rust side but byte on the C# side, or (better) make a user-defined struct on the C# side, e.g. "ByteBool", that holds a single byte value and implements the conversions to/from System.Boolean.

public struct test
public ByteBool isbool;