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);
 }
コード例 #2
0
 public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_SpeechRecognizerState_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_Proxy_SpeechRecognizerState(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState();
     global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognizerState       from   = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognizerState)(transformFrom));
     target.IgnoreAudioInput = from.IgnoreAudioInput;
     target.GrammarType      = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.GrammarType)(((int)(from.GrammarType))));
     global::System.Collections.Generic.Dictionary <string, global:: System.String> tmp  = from.DictionaryGrammar;
     global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>            tmp0 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>);
     if ((tmp != null))
     {
         tmp0 = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>();
         for (global::System.Collections.Generic.IEnumerator <string> iterator = tmp.Keys.GetEnumerator(); iterator.MoveNext();
              )
         {
             string tmp1 = default(string);
             string tmp2 = default(string);
             tmp1 = iterator.Current;
             tmp2 = tmp[iterator.Current];
             tmp0.Add(tmp1, tmp2);
         }
     }
     target.DictionaryGrammar = tmp0;
     target.SrgsFileLocation  = from.SrgsFileLocation;
     return(target);
 }