Welcome to MSDN Blogs Sign in | Join | Help

Kael Rowan

Foundations of Elegant Code

Browse by Tags

All Tags » System.More   (RSS)
System.More
I, like most developers out there, have accumulated a set of classes and utility functions that have been used repeatedly in multiple projects throughout my career.  This code has followed me around in various forms; sometimes by copying the files Read More...
Comparator
I recently wrote a generic PriorityQueue class which can treat any type of object as the priority (not just integers). Specifically, the class looked like this: public class PriorityQueue <T, TPriority> { public PriorityQueue() : this ( false ) Read More...
SynchronizationCallback
It's common for user interface frameworks (such as Windows Forms applications or Visual Studio packages) to restrict API calls to a single thread; specifically the "UI" thread that is usually the original or "main" thread in the process. This means that Read More...
IndentedTextWriter
There's a very useful class called IndentedTextWriter in the System.CodeDom.Compiler namespace that automatically adds whitespace before each line depending on its Indent property. This works great when you have code with several nested (or recursive) Read More...
Page view tracker