So far I haven't come across a task that couldn't be solved with VB, so I never had any incentive to switch to C#.
Well, I started out with VB3 back in the nineties, but I have moved along and by now I use Visual Studio 2012, with VB and WPF. So far I haven't come across a task that couldn't be solved with VB, so I never had any incentive to switch to C#.
int[] myArray { 1, 3, 5, 7, 9}int threshold = 3;var result = myArray.Where(num => num >= threshold);threshold = 6;foreach(int num in result){ Console.Writeline(num);}threshold = 9;var secondResult = result.ToList();foreach(int num in secondResult){ Console.Writeline(num);}
var result = myArray.Where(num => num >= threshold);
79
9
int[] myArray { 1, 3, 5, 7, 9}int threshold = 3;var result = myArray.Where(num => num >= threshold).ToList();threshold = 6;foreach(int num in result){ Console.Writeline(num);}threshold = 9;var secondResult = result;foreach(int num in secondResult){ Console.Writeline(num);}
3579
For the past 2-3 months, our servers keeping dieing in the middle of the night or early morning for no particular reason.