Banner Ad

Tuesday, July 8, 2014

Daily Interview Question #12 : What is the purpose of “sealed” keyword in C#?.

By Francis   Posted at   6:31 PM   C# Interview Questions No comments
Sealed
1. When you want to prevent an class from being inherited by another class, you should use “sealed” keyword in front of the class.

Wednesday, June 25, 2014

Daily Interview Question #11 : What are the different Session Modes available in ASP.Net?

By Francis   Posted at   5:07 PM   ASP.Net Interview Questions No comments
                              In ASP.Net, “Session Mode” denotes where the ASP.Net application is going to store the user session information.  This can be specified in the Web.Config file by the “SessionState” config element under the “System.Web” config Element.

Sunday, June 1, 2014

Daily interview Question #10 : what is the purpose of "explicit" implementation of interface?

By Francis   Posted at   7:32 AM   CodeProject No comments

There are 2 purposes of explicit implementation of Interface:
First, it is used to avoid name collision between interface methods. That is if you are going to create a class library, there may be a chance to use the same name in several places. At that time "explicit" implementation comes as a rescue.
Secondly, You cannot access that implemented method through the object of the class directly. Instead you typecast it as Interface reference then you can access it. This is because, the C# complier, unable to determine which one the user want to call.

Friday, May 16, 2014

Daily interview Question #9: what is the purpose of ref and out parameters in C#?

By Francis   Posted at   9:00 AM   No comments

          Ref keyword is used to send the particular parameter as a reference to the function or subroutine.
          In some cases we may want to return value from the function but we don't want to use that variable within the function. We just get back some value, that's all. In these kind of scenarios we may go with 'out' parameter.
          The main difference between the two is, before passing ref parameter we must initialize the particular variable. But this kind of initialization is not necessary with 'out' parameter.

Sunday, May 11, 2014

ASP.Net Forums - FAQ #4 : Running ASP.Net website from Home

By Francis   Posted at   3:20 PM   ASP.Net Forums 1 comment
                                           Here is the next question for a newbie who are wish to run a ASP.Net website from home or going with a hosting company. However, as per my experience I suggest to instead of running website from home, you may prefer a good hosting company. Running a website from home is not a bad idea. But the stuff behind it some what hard. So in this article i am going to highlight what are the stuffs you need to run a website.
WebSiteIdea
                                 
Connect with Us