c# - linq beginner, foreach statement without declaration? -
i'm reading linq dummies stuff , got question. here code:
private void btntest_click(object sender, eventargs e) { // create array data source. string[] querystring = { “one”, “two”, “three”, “four”, “five” }; // define query. var thisquery = stringvalue in querystring stringvalue.length > 3 select stringvalue + “\r\n”; // display result. foreach (var thisvalue in thisquery) txtresult.text = txtresult.text + thisvalue; } what txtresult, work without declaration?
txtresult value of name property of used textbox control in code. need add textbox in application , assign name property value 'txtresult' code work.
Comments
Post a Comment