Tag Archives: FAQ

Back to Basics – What is the difference between Ref and Out Keyword in C#?

By | November 17, 2017

Continuing with the Back to Basics series, here is another common and frequently asked question. What is the difference between Ref & Out C#? or When should we use ref over out? We used it often, and we know both ref and out parameters are used to pass arguments within methods. Though it’s a very common question, I… Read More »

Back to Basics – What is the difference between const and readonly in C#?

By | November 6, 2017

Continuing with the Back to Basics series, here is another common and quite confusing question. What is read-only and constant variable? How do they differ? When should we use constant over Read-only? const and readonly, are very common keywords and are quite confusing when you placed them with each other. Let’s try to get into it and understand… Read More »

Back to Basics : Difference Between int.Parse() and int.TryParse()

By | January 16, 2016

What is the difference between int.Parse() and int.TryParse() ? Or how the int.parse() is differ from int.TryParse() ? – yet another frequently  asked question in interview for the beginners, and I have seen confusion while answering this.  Let’s try to understand using simple example. To answer this in a sort way, the int.Parse() and int.TryPrase() methods is used… Read More »

How to identify the project dependencies in Visual Studio ?

By | November 25, 2015

In the previous post you have seen the difference between Build and Rebuild solution in Visual Studio and how things works under the hood. In the last section of the post we also talked about the project dependencies and the build order of the projects; which is dependent on project dependencies.  In this post lets have a quick… Read More »

Back to Basics – Building Solutions in Visual Studio – Build Vs. Rebuild

By | November 24, 2015

“Build Solution” and “Rebuild Solution” are the most commonly used features in Visual Studio.  As a developer you writes code, build the solution and run the application in Visual Studio.  Very often you also used “rebuild solution” , or “clean and then build solution”.  Have you ever wonder why there are different options ? When to use them?  Though… Read More »

Back To Basics – Can we use both C# and VB Project within a single Visual Studio Solution ?

By | May 27, 2015

This is one of my favorite question during interview as a part of .NET Framework fundamental, and I generally received very mixed response. Can we have both c# and visual basic project in same solution ?.  The response  I used to received “No, it is not possible”, “Yes. we can do it for web project” etc. This question comes… Read More »

Back to Basics – Calling base class constructor from derived class in C#

By | May 13, 2015

How to call base class constructor from derived class ?  Another frequently  asked question in interview for the beginners, and I have seen confusion around answering this. Let’s have a quick understanding on this. If we derive a class from a base class and want to pass data from the derived class constructor to the constructor of the… Read More »