January 2010
9 posts
It's the maintenance, stupid! (or: Something is...
Most people - even the overwhelming majority of programmers - would say that the main activity of a software developer is “writing source code”. But this is a (though quite understandable) misconception - and if you take a look at the available figures on the issue or if you - as a software professional - are honest to yourself, the misconception immediately turns out to be an...
Jan 28th
I just installed Visual Studio 2010, now how do I...
This article is to show you how to go from a clean install of Visual Studio 2010 to running the Code Contract tools for the first time.  Since the tools aren’t included in VS install, we thought we’d provide some extra information on where to find them.  If you’re already using Code Contracts in Visual Studio 2010, this blog post probably won’t have anything new for you.  If you want an overview...
Jan 27th
Type initialization changes in .NET 4.0
I’d like to stress that none of this should cause your code any problems. The somewhat eager initialization of types without static constructors was entirely legitimate according to the C# and CLR specs, and so the new lazy behaviour of .NET 4.0. If your code assumed that just calling a static method, or creating an instance, would trigger initialization, then that’s your own fault to...
Jan 26th
.NET 4.0 and System.Threading.Tasks
In the soon-to-be-released .NET 4.0 framework and Visual Studio 2010 we are going to get a plethora of new tools to help us write better multi-threaded applications. One of these tools is a new namespace within the System.Threading namespace which is called “Tasks”. The Tasks in System.Threading.Tasks namespace are a method of fine grained parallelism, similar to creating and using...
Jan 26th
Extension Methods on extensionmethod.net
ExtensionMethod.NET is a database of C# 3.0 and Visual Basic 2008 extension methods. It contains many user-rated extension methods that will expand your code library immediately. via extensionmethod.net I stumbled upon this while googling. It’s a nice little collection of utility methods. Posted via web from Adam Hathcock’s Life in Software | Comment »
Jan 22nd
Why Can't I Access A Protected Member From A...
You can’t just go deriving from some class willy-nilly and hope for the best. The implementation of your base class is allowed to call the set of protected methods exposed by the base class. If you want to derive from it then you are required to read the documentation for that class, or the code, and understand under what circumstances your protected methods will be called, and write your...
Jan 15th
The Rx Framework By Example
Introduction The Rx Framework is a very interesting and useful library recently released via DevLabs. The purpose of the framework is to provide a large framework for working with the Observer pattern. That is a nice academic description, but it is hardly enough to start using it immediately. So let us dig a little deeper. This article is to provide an introduction to the Rx Framework by...
Jan 15th
WPF: VisualBrush and incorrect sizings (Fix:...
And here it is: Rect rect = new Rect(0, 0, _expander.RenderSize.Width, _expander.RenderSize.Height); VisualBrush visualBrush = new VisualBrush(_expander); visualBrush.ViewboxUnits = BrushMappingMode.Absolute; visualBrush.Viewbox = new Rect(_expander.TranslatePoint(rect.TopLeft, this), rect.Size); _rectangle.Fill = visualBrush; via kentb.blogspot.com With the help of the above blog...
Jan 11th
Installation of Expression Studio 3 fails
I ran into this same problem. You won’t believe the solution. Minimize the installer window while the installation is running and it should finish okay. For some reason having the installer window visible leaks memory. via stackoverflow.com I just had to solve this. Ridiculous. Posted via web from Adam Hathcock’s Life in Software | Comment »
Jan 1st