textBox1.lines.Take(1)怎么转化成字符串

textBox1.lines.Take(1)如何转化成字符串textBox1.lines.Take(1)如何转化成字符串。可以这样写吗?if(textBo

textBox1.lines.Take(1)如何转化成字符串
textBox1.lines.Take(1)如何转化成字符串。
可以这样写吗?
if(textBox1.lines.Take(1)==textBox2.lines.Take(1))
{
  ……
}

[解决办法]
用First。

if(textBox1.lines.First()==textBox2.lines.First())


[解决办法]

C# code
            TextBox text = new TextBox();            text.Lines=new string[]{"1","2","3","4"};            string xstr = text.Lines.Take(1).FirstOrDefault();