for和foreach的问题
private void button1_Click(object sender, EventArgs e)
         {
             EnglishChinese rs = new EnglishChinese();
             string []result =rs.TranslatorString(this.textBox1.Text);
             StringBuilder stringbu = new StringBuilder();
             foreach (string item in result)
             {
                 stringbu.Append(item);
             }             
             this.textBox2.Text = stringbu.ToString();
         }
这一段代码用 for循环怎么写啊
------解决方案--------------------for(int i=0;i<result.count;i++)
{
  stringbu.Append(result[i]);
}
------解决方案--------------------for(var i = 0; i < result.Length; ++i)
{
stringbu.Append(result[i]);
}
------解决方案--------------------for(int i=0;i<result.Count;i++)//result.Count数组的个数,应该有这属性
 {
 stringbu.Append(result[i]);
 }
------解决方案--------------------如果你知道 foreach 的原理,这个问题很好回答
任何支持foreach的程序,都可以用for循环写出等价形式:
包括数组、集合、ArrayList、队列、链表等等
C# code
var itor = result.GetEnumerator();
for (itor.Reset(); itor.MoveNext(); )
{
    ...
}