public void addPrice( string name, ushort fid, MamaPrice val) { EnsurePeerCreated(); IntPtr put = val.NativeHandle; int code = NativeMethods.mamaMsg_addPrice(nativeHandle, name, fid, put); CheckResultCode(code); }