Musings
Public · Protected · Private
Explicit and implicit variables
-
2012-06-12 09:50if you do int x = 0; // you said it is integer explicitly if you var x =0; // you implicitly defined an integer. var myx = 0; var myy = true; var myString = "Time, marches on...";
-
2012-06-12 09:52int[] numbers = { 1, 12, 13, 14, 1, 2, 3, 8 }; var subset = from i in numbers where i < 10 select i; Console.Write("Small Values: "); foreach (var i in subset) { Console.Write("{0} ", i); }
This blog is frozen. No new comments or edits allowed.