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 [...]
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: C#, Garbage Collector, Memory Management, Microsoft, Programming, Stack
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: ASP.net, C#, Reference Type, System.Object, Value Type
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: ASMX, ASP.net, C#, Visual Studio File Types, web services
Posted in ASP.net, C# | No Comments »