Profile cover photo
Profile photo
Mark Jones
107 followers
107 followers
About
Communities and Collections
View all
Posts

Post has attachment
Decorator pattern
Why? I have a colleague who is officially a tester and scrummaster, and he has a growing interest in the code we (the developers) write. He asked a question this morning: "I've heard you talk about decorators, what are they?". I thought the best way to desc...
Decorator pattern
Decorator pattern
possiblythemostboringblogever.blogspot.com

Post has attachment

Sorry for the spam! I didn't realise these posts would get shared.

Post has attachment
Robber Fly, with lunch.
Photo

Post has attachment
Calling generic methods with runtime Type parameter
In the normal course of events, a call to a generic method needs to have its type resolved at compile time. For example, consider this class and method: class  TypeWriter {      public   void  WriteType<T>(TextWriter target)     {         target.WriteLine( ...
Calling generic methods with runtime Type parameter
Calling generic methods with runtime Type parameter
possiblythemostboringblogever.blogspot.com

Post has attachment
KeyedCollection
During a talk at DevWeek 2014 I discovered the KeyedCollection<TKey,TItem> class. The class is in the System.Collections.ObjectModel namespace, and is an alternative to the Dictionary<TKey,TValue> for items where the key is embedded in the item itself. The ...
KeyedCollection
KeyedCollection
possiblythemostboringblogever.blogspot.com

Post has attachment
System.BitConverter Class
Every now and again a new framework class comes to my attention. At DevWeek I was attending a talk on Cryptography and an incidental part of the talk featured the BitConverter class. This is a class in the System namespace and has a bunch of static methods ...
System.BitConverter Class
System.BitConverter Class
possiblythemostboringblogever.blogspot.com

Post has attachment
Faking AppSettings in tests
If you have some code that uses configuration from an app.config or web.config file, and you need to retrospectively write tests for it, there are several approaches you can take to get fake setting into your tests. Given this code using  System; using  Sys...
Faking AppSettings in tests
Faking AppSettings in tests
possiblythemostboringblogever.blogspot.com

Post has attachment
Disposable HtmlHelper Extensions
If you're regularly using a block of HTML elements consisting of opening tags and closing tags, you might want to employ the using pattern used by the framework's FormExtensions: This is pretty straightforward; you need to create a class that implements IDi...

Post has attachment
Create a Console Application in VS Express 2013 For Web
Good news; the post I wrote on Creating a Console App in Visual Studio Express 2012 for Web is still relevant for VS Express 2013 For Web. My console template on GitHub works with 2013 as well:
Create a Console Application in VS Express 2013 For Web
Create a Console Application in VS Express 2013 For Web
possiblythemostboringblogever.blogspot.com
Wait while more posts are being loaded