public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_EventsQueryResponse_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_Proxy_EventsQueryResponse(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventsQueryResponse target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventsQueryResponse();
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventsQueryResponse       from   = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventsQueryResponse)(transformFrom));
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry> tmp = from.Events;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry tmp1 = default(global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry);
             global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry)(Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_EventListEntry_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_Proxy_EventListEntry(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.Events = tmp0;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_SpeechRecognizerGuiState_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_Proxy_SpeechRecognizerGuiState(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.SpeechRecognizerGuiState target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.SpeechRecognizerGuiState();
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.SpeechRecognizerGuiState       from   = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.SpeechRecognizerGuiState)(transformFrom));
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState       tmp    = from.SpeechRecognizerState;
     if ((tmp != null))
     {
         global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState tmp0 = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0)));
         target.SpeechRecognizerState = tmp0;
     }
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry> tmp1 = from.SpeechEvents;
     if ((tmp1 != null))
     {
         int count = tmp1.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry> tmp2 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry tmp3 = default(global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry);
             global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.EventListEntry       tmp4 = tmp1[index];
             if ((tmp4 != null))
             {
                 tmp3 = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizerGui.Proxy.EventListEntry)(Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_EventListEntry_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizerGui_Proxy_EventListEntry(tmp4)));
             }
             tmp2.Add(tmp3);
         }
         target.SpeechEvents = tmp2;
     }
     return(target);
 }
 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);
 }