{#advanced_dlg.about_title}

C# Language Features »

Tuesday, April 20, 2010 | 0 Comments

Working with threads in .NET is fairly straightforward. You have two options: Manually creating new threads (usually for longer running tasks) and Using .NET’s built-in thread  pool (typically for shorter running tasks) Option 1 - Manually create your own thread (Works for both short-running and long running tasks) Say you have a method (a long running task) that you want to assign to a new thread. All you need to do is pass in the name of the long running method to ThreadStart.... [More]

{#advanced_dlg.about_title}

»

Tuesday, April 20, 2010 | 0 Comments

What is Microsoft Silverlight?  Silverlight is: a powerful development platform for creating engaging, interactive applications for the Web, desktop, and mobile devices.    a free plug-in, compatible across multiple browsers and powered by the .NET framework.  compatible across devices and operating systems to bring a new level of interactivity that is not typically associated within a web environment.  With support for advanced data integration, multithr... [More]

{#advanced_dlg.about_title}

»

Tuesday, April 6, 2010 | 0 Comments

The Singleton pattern is one of the most widely used in object oriented programming. The basic idea is to prevent multiple instances of a class. One might ask – how does this differ from a static class? Difference between a Static class and a Singleton Static classes are used whenever there is no reason to associate an identity with an object. For example – if one were modeling a Financial Application, a class representing Money (containing numeric conversion methods etc.) could be designed ... [More]

{#advanced_dlg.about_title}

»

Sunday, March 14, 2010 | 0 Comments

The eventing mechanism built into the .NET runtime makes it a piece of cake to implement a simple publisher - subscriber pattern (C# code follows). The example below revolves around the ‘payday’ event – which is called PayrollArrived. The event is published by the Employer class (the Employer announces when payday arrives). Each Employee (i.e. each instance of the Employee class) listens for the event – and is hence a subscriber to the PayrollArrived event. // Publisher Class – EmployerPublishe... [More]

{#advanced_dlg.about_title}

C# Language Features , Performance Tuning and Troubleshooting »

Saturday, March 13, 2010 | 1 Comments

Recently, I called a roofer to look at a couple of leaks in my roof.  The roofer was at my house for a total of 3 hours. Of this time, the break up of time spent was 2 hours finding the source of the leak 30 minutes fixing them 30 minutes running water over the fixes to see if they still leaked The roofer's job isn't that different from my day job - of troubleshooting memory issues (especially within complex UI). In general, if it takes me a week to fix a particular issue - ... [More]