Disposable Pattern in .NET

Posted by Shams Mukhtar | Comments (53) | 26. February 2010

Garbage collector (GC) is a blessing in .NET, if you happen to program in C++ in the past, where it was one of the prime responsibility of a developer was to manage the heap.More...

Recursion Applied using Delegates & Lambda Expressions

Posted by Shams Mukhtar | Comments (295) | 21. December 2009

Yesterday, I came across an excellent article on “Anonymous Recursion in C#” by Wesdyer, I thought I’ll give a try on applying Delegates and Lambda Expressions in solving a recursive problem. More...

Rules || “Rulers” in WPF – Power of Recursion

Posted by Shams Mukhtar | Comments (521) | 25. July 2009

Recursion always been a power full tool of solving the most complicated problems in a very elegant manner, but at the price of space (as it is based on stack). The problems we solve with recursion are usually involve divide and conquer, trees traversal / graphs traversal etc.More...

Blocking Queues & Thread’s Communication in C#

Posted by Shams Mukhtar | Comments (1140) | 4. May 2009

In one of my previous [posts], I discussed about creating adapter around “Thread.Monitor”. Today I’ll extend the discussion on how to utilize the same technique in creating blocking & synchronized queues and how they can be used in thread’s communication as shared resources.More...

“Zipper” A Zipping Component In .NET 3.5 Using C# 3.0

Posted by Shams Mukhtar | Comments (554) | 28. March 2009

Recently I have posted a zipping plugin – “On the Fly Zip and Attach” – for Windows Live Writer. I actually developed this component that was consumed in the writer’s zipping plugin.More...

Posted New Live Writer Plugin – On the Fly | Zip it | Attach it

Posted by Shams Mukhtar | Comments (224) | 12. March 2009

This is a windows live writer zipping plug-in that allows you to select files / folders and zip them on the fly  that will appear as attachment inserts, while you are writing blogs. Its kind a handy that you may want different selections at different times while blogging and keep on adding to the list and then zip them.More...

C# 3.0 Extension Methods As Adapters

Posted by Shams Mukhtar | Comments (534) | 9. March 2009

Extension methods provide public / internal extensions to the already existing types. And the design pattern that provides this functionality is the visitor pattern, but the draw back of the visitor is you have to have all the hooks planted in the class hierarchy  according to the pattern to make it workable. But the extension methods provide you this pattern right out of the box.More...