if i do this.
int dreamX[];
private void Form1_Load(object sender, EventArgs e)
{
sumX();
}
private void sumX()
{
for (var i = 0; i < 8; i++)
{
dreamX[i] = from Control control in Controls
where
control.GetType() == typeof(TextBox)
&& control.Name.StartsWith("box")
select Convert.ToInt32(((TextBox)control).Text);
}
im getting this error, how do explicit convert this.
"Cannot implicitly convert type 'System.Collections.Generic.IEnumerable -int-' to 'int'"