Gotchas: Adding Attributes to Properties on Interfaces in F#

Tuesday, September 15th, 2009

I ran into a couple of issues when writing an F# class to be consumed by C#. Specifically when it came to adding attributes to a property declared on an interface. You would expect the following code to decorate the SofteningLength property with the Dependency and DefaultValue attributes: ...

Mixed Languages: The Right Tool for The Right Job

Tuesday, June 16th, 2009

The N-body modeling code and visualization I’ve been working on finally got off the ground in some sort of reasonable form last night. Here you can see it running with 5000 stars at over 30 frames a second. It’s been working from the start (agile/TDD isn’t something you just write about) ...

Using Prism With EntLib and Unity

Thursday, March 5th, 2009

I thought I'd collect together a series posts related to some of my adventures using EntLib 4.1 and Unity 1.2 with Prism 1.0 to build a composite WPF application. Using the EntLib Validation Block with WPF Part 2: Configuration Based Validation  Using ...

Using the EntLib Validation Block with WPF Part 2: Configuration Based Validation

Saturday, January 31st, 2009

In part 1 I covered using the EntLib Validation Block in combination with the Presentation Model pattern described in the p&p’s Composite Application Guidance for WPF (Prism). The end result was a presentation model decorated with attributes which describe how to validate the model and surface validation errors to the ...

Unity for Silverlight from patterns & practices

Monday, December 15th, 2008

A month or so back p&p shipped Unity 1.2 a dependency injection container for .NET. Just in time for the gift giving season comes Unity for Silverlight! So if you want to use DI as part of your Silverlight application today you can. Unity for Silverlight December 2008 Release (1.2) The ...

patterns & practices Ships More Stuff!

Wednesday, November 5th, 2008

Much of this happened last week but what with my white paper to finish and preparing for the p&p Summit I didn't get time to blog about it. Anyway here goes, it's a long list... Unity 1.2 Added an interception mechanism (extension) and integration of the Policy ...

Dependency Injection with Unity and Linq to SQL DataContexts

Tuesday, June 3rd, 2008

I've spent a few hours in the last couple of days playing around with ASP.NET MVC, Linq to SQL and now the Unity dependency injection (DI) container. Basically I wanted to start putting together a little N-tier application using the latest and greatest new stuff. I also got to use ...