Delegate to Lambda Expression

Objective This article will not give any theoretical definition of 1. Delegate Read theory of Delegate here 2. Anonymous method 3. Lambda Expression Read theory of Lambda expression here I am going to give a story type discussion from Delegate to Lambda expression. Let us say, there is a requirement that you need to passContinueContinue reading “Delegate to Lambda Expression”

Step by Step walk Through on URL routing in ASP.Net 4.0

Objective URL Routing is new feature in ASP.Net 4.0. This article will give a walkthrough on how to work with URL Routing and an introduction of that. URL Routing ASP.Net 4.0 URL Routing enables mapping between search engines optimized URL to physical web Form pages. For example http://localhost:36774/Products/All URL will be mapped to http://localhost:36774/AllProduct.aspx HereContinueContinue reading “Step by Step walk Through on URL routing in ASP.Net 4.0”

Basic of C#: Call Stack, Call Site and Stack unwinding

Objective In this article, I will explain three basic terms of C# 1. Call Stack 2. Call Site 3. Stack Unwinding Let us say, you got the below code Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication7 { class Program { static void Main(string[] args) { Method1(); Console.Read(); } static void Method1()ContinueContinue reading “Basic of C#: Call Stack, Call Site and Stack unwinding”

Basics of C#: Checked and Unchecked Conversions

Objective In this article, I will discuss about Checked and unchecked keyword and conversions in C#. Consider the below code Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication7 { class Program { static void Main(string[] args) { int number = int.MaxValue; number = number + 1; Console.WriteLine(number); Console.Read(); } } } Now,ContinueContinue reading “Basics of C#: Checked and Unchecked Conversions”

Win Visual Studio 2010 with MSDN subscription in 5 minutes

Winner Announced : Name:Mamta Dalal City: Mumbai, India. Congrats Mamta …. I hope you will take this and write more articles to help the community .. Closing date: 25th July 2010 Winner announced :  26th July 2010  [1 winners] In order to celebrate Visual studio 2010 and .Net 4.0 launch. Microsoft is giving away “VisualContinueContinue reading “Win Visual Studio 2010 with MSDN subscription in 5 minutes”

Shut Down, Restart, Log Off and Forced Log off System using c#

Objective In this article, I am going to show, How to Shut Down a machine How to Log Off a machine How to forced log off a machine How to restart a machine using c# To perform our task, very first let us create a windows application project. On form drag and drop four buttonsContinueContinue reading “Shut Down, Restart, Log Off and Forced Log off System using c#”

Simple Explanation for very beginners of Query String

Query String allows you to pass values between the asp.net pages. Let us say, you are navigating to below URL In above URL, you are navigating to a page called Add.aspx and Number1 and Number2 are query string to page Add.aspx. To create Query String, Add a question mark (?) to URL. After Question mark,ContinueContinue reading “Simple Explanation for very beginners of Query String”

Demystifying CLR Part #1

Objective This is a fully theoretical article. In this article, I am going to explain fundamentals of CLR. How CLR executes codes written in different languages. I am going to explain various components of MANAGED MODULES also. Note: I have written this article on basis of my learning from the very nice book written byContinueContinue reading “Demystifying CLR Part #1”

Inversion of Control

What is Problem? Let, there is a class called Kids.cs. Purpose of this class is to maintain name and age of kids of a particular person. Kids.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication23 {    public  class Kids     {         private int age;         private string name;    ContinueContinue reading “Inversion of Control”

Singleton Pattern

  The Singleton is a design pattern, which instantiates one instance of the class once it is first called, and maintains that single instance throughout the lifetime of the program. Once it is instantiated, all future requests will be through a single global point of access.   Singleton provides a global, single instance by: MakingContinueContinue reading “Singleton Pattern”