using System.Runtime.InteropServices; namespace Muchinfo.MTPClient.Data.Quote.Structs { /// /// 发送订阅商品结构体 /// [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct SubGoods { /// /// 订阅状态:0:未订阅;1:订阅成功;2订阅失败 /// [MarshalAs(UnmanagedType.U1)] public byte State; /// /// 交易所代码 /// [MarshalAs(UnmanagedType.U1)] public byte ExchangeCode; /// /// 商品编码 /// [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string GoodsCode; } }