T4MVC now with multiple file support

Ok, so I’m indulging in self-publicity a little with this post, but I really want to take the opportunity to highlight some great work that David Ebbo has done. I’ve been spending a bit of time with ASP.NET MVC Framework and really like it. The combination of testability, being led towards separation of concerns, massive…

0

Flexible Enumerations

Sometimes enumerations in .NET just don’t cut it. In the end they’re just a numeric value to which a piece of string metadata is attached to some of the values. Consider the following enumerations: public enum OfficeLocationNames {     London,     Edinburgh,     Redmond } public enum OfficeLocationCodes {     LON,     EDI,    …

2

How to work with PropertyChanged’s smelly name string

Karl posted an interesting article recently INotifyPropertyChanged – How to remove the Property Name String Code Smell. It’a nice implementation and the resulting code certainly looks a whole better. As Karl notes the biggest problem this approach faces is one with performance. Notably, the proposed implementation is a lot slower when there are listeners wired…

2

Five minute recipe for a decent BoolToVisibilityConverter

There are a bunch of IValueConverters that WPF probably should ship with… MultiplyConverter, AdditionConverter etc. Rather oddly it does ship with one: The BooleanToVisibilityConverter: However, I’m not a huge fan of the implementation as it gives me little control over what true and false actually map to. For example, should false be Collapsed or Visible?…

0

ADC Workshop: Silverlight Development Ramp-up

The ADC team is pleased to announce a new workshop. For existing customers, if you would like take advantage of this service within your organisation, please contact your ADC. If you are not currently engaged with Application Development Consulting and are interested in this service, please contact ADCinfo@microsoft.com. ADC Workshop Silverlight Development Ramp-up Workshop Date…

0

Silverlight out-of-browser and initParams

Silverlight 3 supports a very cool ‘deployment model’ where you can run the Silverlight Application ‘out-of-browser’ (OOB) and kick it off from your start menu. It even works offline. This is the future, get to like it. However, because the plug-in is no longer hosted in your page you lose all those juicy settings and,…

0

Getting started with WinDbg and Sos.dll

I wrote this largely to get the commands right in my own head – as a result, this is more a list of commands and some semblance of a sequence you can run them in. If you’ve never used these tools before this will get you out of the gate on WinDbg and the debugger…

0

.NET Naming Conventions

I often get asked about the Naming Conventions I adhere to when writing code (C#, naturally). It made sense to share these in a blog post so I can refer to it in future. Some of these guidelines (well, one, the underscore on private fields) are negotiable as a matter of style. However, the public…

2

How to define and host workflow services with multiple receives

Note – this article is based on Workflow 4 Beta 1, some things will change for Beta 2] First off let me apologise for the length of this post. If you just want the code, skip to the bottom. I don’t know about you but some words just don’t seem to make their way into…

0