What would be output of following ? static void Main(string [] args) { List< int> numlist = new List< int>() {1,2, 3, 4, 5, 6, 7 }; CalculateAndPrint( ref numlist); } public static void CalculateAndPrint( ref List< int> Num) { var n = Num.Where(d => d > Num[2]); foreach ( var item in n) { Console.WriteLine(item); } } The most obvious answer is … Continue reading Evil Code 0001 : Lambda and Ref/out
Day: January 27, 2015
Hello world!
Hello Readers. A short intro of myself. Am writing codes for bread since 2005, focusing mainly on .Net and related tecahnologies. I have some experience into process side of development, being in the Process Group for CMMI appraisals and know a bit about the nuisances of Process Areas up to Level 3. My primary hobby … Continue reading Hello world!