Other day my Boss was reviewing the code written by me. He had a feedback, keep the code DRY. It was great feedback, and I thought why not to share with you that what does DRY mean? DRY stands for Do not Repeat Yourself. To understand it better let is consider below code snippet: IContinueContinue reading “Keep your code DRY”
Tag Archives: C#
Understanding IEnumerable and IQueryable in C#
I see developers are not that confident about usage of the mentioned interfaces. In this post, I am going to discuss basic differences among IEnumerable and IQueryable and in which scenario to use what
How to write and run a C Program in Visual Studio 2010
Today I was recalling good days of language C and got tempted to play around POINTERS, STRUCTURE, and DATA STRUCTURE etc. I started to write some C code and as soon as I started, the first hurdle came that where to write code? I was running on 64 bit Windows 7 machine with Visual StudioContinueContinue reading “How to write and run a C Program in Visual Studio 2010”
Inserting in Excel file from C# collection using Open XML SDK 2.0
In this post I will show inserting rows in excel file from a c Sharp list using Open XML SDK. Open XML SDK is very useful when you don’t want to or cannot use Microsoft Office InterOP dll. You can download it from below URL http://www.microsoft.com/download/en/details.aspx?id=5124 Once you download and run the MSI follow theContinueContinue reading “Inserting in Excel file from C# collection using Open XML SDK 2.0”
Performance of Non-Zero lower bound Single Dimensional Array
Today while returning from office, I had a very good conversation with one of mine friend Sunny Raheja. We were discussing here and there and suddenly he asked to me “Hey DJ, is there any difference in performance of single dimensional array if I don’t give lower bound as 0 or if lower bound isContinueContinue reading “Performance of Non-Zero lower bound Single Dimensional Array”