C# implementation and alternate JavaScript

C# implementation with extension methods and JavaScript implementation with hand-coded mixins.

From my article at http://johannesbrodwall.com/2014/02/01/horizontal-reuse-in-javascript-and-c/