1
私は "string、int"で辞書を作成しました。私は現在、 "ch_Stk.Add"を実行することによって選択肢に単語を入れようとしています。
辞書はどのように入力できますか?Microsoft.Speech:辞書から選択
Dictionary<string, int> textNumber = new Dictionary<string, int>();
textNumber.Add("eins", 1);
textNumber.Add("zwei", 2);
textNumber.Add("drei", 3);
textNumber.Add("vier", 4);
textNumber.Add("fünf", 5);
textNumber.Add("sechs", 6);
Choices ch_Stck = new Choices();
ch_Stck.Add(. . . .);
GrammarBuilder gb_result = new GrammarBuilder(ch_Stck);
Grammar g_result = new Grammar(gb_result);
return g_result;