Evolution of C Sharp Language: Picture Blog

I was working on something and suddenly a mail popped up. I did not know the sender but I found he/she was a job aspirant. I found him/her very impatient and gist of his/her mail was, “Sir tomorrow I got a job interview. Could you please help me with different versions of C Sharp withContinueContinue reading “Evolution of C Sharp Language: Picture Blog”

Method Caller Information in C Sharp 5.0

Before we understand Method Caller Information feature of C# 5.0, we need to understand Optional Parameter feature of C# 4.0. C Sharp 4.0 introduced Optional Parameter feature . According to this feature, in function call only required parameters are needed to be passed. If value of Optional Parameters are not provided then they will takeContinueContinue reading “Method Caller Information in C Sharp 5.0”

CSharp Interview Question: What is Action in CSharp

One of my friends called me after his interview as for a developer role in an esteemed organization. One of the question, interviewer asked him, After talking to him, I thought why not to blog about it? I am trying here to use minimum words and optimum code samples can be discussed with interviewer asContinueContinue reading “CSharp Interview Question: What is Action in CSharp”

MongoDB with CSharp

Before you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from here Start MongoDB server If you would have gone through MongoDB on Windows quick start in 5 minute then you know how to start MongoDB server. HoweverContinueContinue reading “MongoDB with CSharp”

Reading EXCEL FILE in a collection using Open XML SDK 2.0

In my previous article I talked about Inserting in Excel file from C# collection using Open XML SDK 2.0 before you go ahead, I strongly recommend you to read this post. In this post, let us try to do the reverse process. We will read all the rows of Excel file List of Bloggers. AgainContinueContinue reading “Reading EXCEL FILE in a collection using Open XML SDK 2.0”

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”

Code snippet for Fetching Data from Excel using ADO.Net

Today one of my team members asked me a very simple question though very important question, “How could we fetch Excel Records using ADO.Net? Could you give me code snippet of same? “ I replied him; it is pretty possible using oledDbConnection  I told him to add below reference I gave him below straight forwardContinueContinue reading “Code snippet for Fetching Data from Excel using ADO.Net”

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”

Type casting with is and as operator in C#

I have been seeing many developers are casting between two types using is operator. As we know, we do have as operator also for type casting. For purpose of this article, we are going to use below two classes, Very first let us try to understand, how is operator works? So , if we areContinueContinue reading “Type casting with is and as operator in C#”

System.Object : a look on mother of all managed classes

In this article we will walkthrough and understand each function of Object class. System.Object is known as mother class of all the managed classes. All the classes are inherited from System.Object. It is base type for all the managed classes. So it defines the base behavior of all the managed classes. System.Object class contains belowContinueContinue reading “System.Object : a look on mother of all managed classes”