Constraining Generic types to parameterized constructors

Pretty cool trick I found today on StackOverflow. I’ve often struggled with the fact that when you’re writing a generic method, while you can constrain the type of the method, you can only specify the constraint of having a constructor, and even then, only a default constructor (eg: new()); not one with parameters.

Did you know: *Internal* interfaces on *Public* classes

So I’ll admit I’ve kind of been a more standard OOP developer. Today, however, I got a wild hair and did an F12 (Go to definition) on Tuple<t1, t2=””>. I found this: public class Tuple<t1, t2> : IStructuralEquatable, IStructuralComparable, IComparable, ITuple And thought “ITuple? What’s that?” I went diving in to MSDN and found nothing. So I… Read More »

Text Template Transformation Toolkit tongue twister

Microsoft’s T4 (Text Template Transformation Toolkit) framework is something every software engineer should have in their back pocket. It flies right along with the OOP principle of DRY (Don’t Repeat Yourself). If you’re writing DSL descriptors and then implementing their C# counterparts to be late bound, this shit is going to add YEARS to your… Read More »

Outlook.com + Windows Phone + Windows 8 = HEAVEN

Let’s face it, Windows Phone, Windows 8, and Outlook.com are purpose-built to work together. And why not – their polygamist marriage is f***ing AWESOME. If you’re using a 3rd party for your e-mail instead of Outlook.com and are as gung-ho about the rest of the Microsoft ecosystem as I am, you’re an idiot. I was… Read More »

TFS in the Cloud–Delete a Team Project

I’ve been using TFS “preview” for a while now for my personal projects. Naturally as a dev starts using a new service we pretty much just go hog wild clicking stuff, turning things on, naming stuff, and adding things to it – well, I do anyway. This tends to, however, leave a pretty good mess by… Read More »

Now available in the Windows Store

Thanks to the awesome folks over at IdeaNotion and their EXCELLENT tool, IdeaPress, you can now read .Netitude from the comfort of your sexy Modern environment with the .Netitude Blog Windows 8 app. Head over to the Windows Store and install it now, or if you’re reading this from w/in the IE10 Modern application on your… Read More »