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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -