public static void Ch8ModifyCh8StructWithUnionByValueStd() { Ch8StructWithUnionINT2 value = new Ch8StructWithUnionINT2 { iValue = 123, ch8DataType = Ch8DataType.INT }; bool ret = Ch8Native.Ch8ModifyCh8StructWithUnionByValueStd(value); }
public static extern bool Ch8ModifyCh8StructWithUnionByValue([MarshalAs(UnmanagedType.Struct)] Ch8StructWithUnionINT2 value);