internal static DDS.ReturnCode CopyIn(PartitionQosPolicy from, ref IntPtr to)
 {
     DDS.ReturnCode result;
     if (from != null)
     {
         result = SequenceStringMarshaler.CopyIn(from.Name, ref to);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "PartitionQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 internal static DDS.ReturnCode CopyIn(SubscriptionKeyQosPolicy from, ref v_userKeyPolicyI_s to)
 {
     DDS.ReturnCode result;
     if (from != null)
     {
         to.v.enable = from.UseKeyList;
         result      = SequenceStringMarshaler.CopyIn(from.KeyList, ref to.v.expression);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "SubscriptionKeyQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }