internal void FromNative(ParticipantBuiltinTopicDataWrapper wrapper) { Key = wrapper.Key; if (UserData == null) { UserData = new UserDataQosPolicy(); } UserData.FromNative(wrapper.UserData); }
internal ParticipantBuiltinTopicDataWrapper ToNative() { if (toRelease == null) { toRelease = new List <IntPtr>(); } var data = new ParticipantBuiltinTopicDataWrapper { Key = Key, }; if (UserData != null) { data.UserData = UserData.ToNative(); } return(data); }