C# XML Documentation – Referencing code elements with the cref attribute.
XML documentation comments in C# are a great feature, especially if you’ve used an automatic documentation generator such as Sandcastle. Being able to generate documentation directly from source code...
View ArticleCan access modifiers affect performance?
I saw an interesting question on StackOverflow yesterday, the poster asked the question “can making a method private improve performance?”. Of course the answer is a resounding no, but it got me...
View ArticleThe Adaptive Interface Pattern
Many times you read about some design pattern in a book or online, and you realise that it’s a technique you’ve been using for years – you just didn’t have a name for it. It can be a bit of a double...
View ArticleNull – the most abused keyword in C#.
Ask any programmer what ‘null’ means in C#, 99% of the time you will hear an answer that closely resembles this: “Null – Amounting to nothing, non-existent, absent of value”. Seems legit. But the...
View ArticlePractical applications of the Adaptive Interface Pattern: The Fluent Builder...
So it’s been a little while since my last blog post due to the fact that I have recently moved to London to start a new job. If you’re involved in the .NET community in London then look out for me at...
View ArticleA word of caution when overriding operators on reference types
Recently I came across this little snippet of code which contains a serious gotcha! public class Foo { public Int32 Amount { get; private set; } public Foo(Int32 amount) { Amount =...
View Article