Wednesday, December 19, 2012

Format code shortcut for VS2010

Visual Studio WITH C# KEY BINDINGS To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default: Ctrl+E, Ctrl+D to format the entire document. Ctrl+E, Ctrl+F to format the selection. Ctrl + K + D (Entire document) Ctrl + K + F (Selection only) resharper - Ctrl + Alt + F VS 2010 - Ctrl + K, Ctrl + D You can change...

Wednesday, May 30, 2012

ViewStateMode in ASP.Net 4.0

ViewStateMode in ASP.Net 4.0 When asp.net introduced the concept of viewstate, it changed the way how developers maintain the state for the controls in a web page. Until then to keep the track of the control(in classic asp), it was the developer responsibility to manually assign the posted content before rendering the control again. Viewstate made allowed the developer to do it with ease....

Tuesday, May 29, 2012

Method Overriding in C#.NET

Method Overriding in C#.NET Creating a method in derived class with same signature as a method in base class is called as method overriding. Same signature means methods must have same name, same number of arguments and same type of arguments. Method overriding is possible only in derived classes, but not within the same class. When derived class needs a method with same signature as in base...

Monday, May 28, 2012

Improvements in C# 4.0

Improvements in C# 4.0 C# in .NET Framework 4.0 has some more things to offer. These are: Dynamic lookup Named Optional parameters Dynamic Lookup There is a new static type named dynamic. We can use it as object of any type. If there is any error on its usage, we would get it on runtime only. For example: dynamic integerValue = 1; dynamic stringValue = " a string"; dynamic Result =...

Friday, May 25, 2012

Tuesday, May 22, 2012

C# FAQ: abstract class & interface , private constructor

What is abstract class ? Abstract class is a base class or a parent class. Abstract classes can  have empty abstract methods or it can have implemented methods which can be overridden by child classes. The next question i expected was on interfaces and yes there it comes. What are interfaces? Interface is a contract class with empty methods , properties and functions. Any class which...

Monday, May 21, 2012

Basic Concepts of OOPs in .Net

Introduction .NET is fully object oriented platform that allow languages to take full advantage of these OO features. The features include: Namespace Classes Abstract Encapsulation Overloading New. Overriding Interfaces Polymorphism Let’s take a quick look at what each of this term means. Namespace Even though namespace is not really an OOPs feature, .NET...

SQL Tuning or SQL Optimization

Sql Statements are used to retrieve data from the database. We can get same results by writing different sql queries. But use of the best query is important when performance is considered. So you need to sql query tuning based on the requirement. Here is the list of queries which we use reqularly and how these sql queries can be optimized for better performance. SQL Tuning/SQL Optimization...

Thursday, May 10, 2012

How IIS processes ASP.NET request Before understanding the full flow, we have to go through following concepts: IIS: IIS (Internet Information Server) is one of the most powerful web servers from Microsoft that is used to host your ASP.NET Web application. IIS has it’s own ASP.NET Process Engine  to handle the ASP.NET request. So, when a request comes from client to server,...

Wednesday, April 25, 2012

New features of C# 4.0-Named and Optional Parameters

The new release of Visual Studio.NET 2010 and Microsoft.NET Framework 4.0, we have new features added to the C# language. The new features being integrated with the new version of the language C# 4.0. Here is a list of new features added to C# 4.0. •Dynamic programming •Named and optional parameters •Covariance and Contravariance   Named and Optional Parameters Another new feature...

Popular Posts

Recent Posts

Unordered List

Text Widget

Blog Archive