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;