ILoggable

A place to keep my thoughts on programming

Monthly Archives: January 2008

Struct’s via Automatic Properties can be tricky

Here’s a bit of code i just got through debugging… public Point Point { get; private set; } public void Offset(Point origin) { Point.Offset(-origin.X, -origin.Y); } Can you tell what’s wrong here? Let’s just say that the Offset won’t take. … Continue reading

January 15, 2008 .net ,

More Deferred Execution Fun: foreach and delegation scope

This is closely related to my last post on deferred execution gotchas and its basically more “if you inline delegated code, you may easily overlook scope side-effects”. This time it’s about dealing with foreach and using the local each item … Continue reading

January 11, 2008 .net , , ,

Copying a Silverlight User Control from one project to another

Here’s something I tracked down with no help from error messages: When you copy a user control in Silverlight 1.1 from one project to another the Xaml that the control loads will have it’s Build Action set to SilverlightPage. When … Continue reading

January 3, 2008 .net , ,

XP on Bootcamp & VMWare Fusion, take 2

Time to re-install XP My setup until yesterday was Bootcamp partion that was running as a VM using VMWare Fusion. The Bootcamp partition was set up as FAT32, because I NTFS came up as readonly when mounted under Mac OS. … Continue reading

geek , ,