public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_EventListEntry_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_Proxy_EventListEntry(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry();
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry       from   = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry)(transformFrom));
     target.Timestamp = from.Timestamp;
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechDetectedNotification tmp = from.SpeechDetected;
     if ((tmp != null))
     {
         global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechDetectedNotification tmp0 = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechDetectedNotification();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0)));
         target.SpeechDetected = tmp0;
     }
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizedNotification tmp1 = from.SpeechRecognized;
     if ((tmp1 != null))
     {
         global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizedNotification tmp2 = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizedNotification();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp1)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp2)));
         target.SpeechRecognized = tmp2;
     }
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognitionRejectedNotification tmp3 = from.RecognitionRejected;
     if ((tmp3 != null))
     {
         global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognitionRejectedNotification tmp4 = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognitionRejectedNotification();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp3)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp4)));
         target.RecognitionRejected = tmp4;
     }
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechInformation tmp5 = from.SpeechInformation;
     if ((tmp5 != null))
     {
         global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechInformation tmp6 = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechInformation();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp5)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp6)));
         target.SpeechInformation = tmp6;
     }
     return(target);
 }
Пример #2
0
 public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_SpeechRecognitionRejectedNotification_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_Proxy_SpeechRecognitionRejectedNotification(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognitionRejectedNotification target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognitionRejectedNotification();
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognitionRejectedNotification       from   = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognitionRejectedNotification)(transformFrom));
     target.DurationInTicks = from.DurationInTicks;
     target.StartTime       = from.StartTime;
     return(target);
 }