Ishraq Ahmad

Blog for .net Architects & Developers looking to learn WPF, Silverlight, WCF and ASP.net MVC.

C#

C# is versus as operators

In programming, most common scenario is to check if object is of given type, object is not null and then type cast it to given type. C# provides “is” and “as” operators to ease programming and an efficient way to implement this common scenario. Many developers get confuse about when to use “is” operator and [...]

Tags: ,

Posted in C# | No Comments »

Memory Management in C#

C# automatically manages memory so that developers are freed to worry about memory management.  In early days of C and C++, manual memory management requires us to write code to allocate and de-allocate memory blocks. Automatic memory management does not only increase code quality but it also increases productivity. Developers focus on functional aspects rather [...]

Tags: , , , , ,

Posted in C# | No Comments »

Reference Type and Value Type

Common Language Runtime is based on two types which are Reference Type and Value Type. Let’s take a brief look into each of one. Reference Type Most of Microsoft .net framework classes are reference types. So, what Reference Type is exactly? It is a type which is always allocated from the managed heap. You need [...]

Tags: , , , ,

Posted in C# | No Comments »

ASP.NET File Types

ASP.NET applications can include many types of files. Following are details, ASPX: These are ASP.net web pages. They contain the user interface and in some cases underlying application code. Users request or navigate directly to one of these pages to start web application. ASCX: These are ASP.NET user controls. User controls are similar to web [...]

Tags: , , , ,

Posted in ASP.net, C# | No Comments »


Categories