Exemplo n.º 1
0
        internal void FromNative(ParticipantBuiltinTopicDataWrapper wrapper)
        {
            Key = wrapper.Key;

            if (UserData == null)
            {
                UserData = new UserDataQosPolicy();
            }
            UserData.FromNative(wrapper.UserData);
        }
Exemplo n.º 2
0
        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);
        }