C#
-
.NET

List executed code using PostSharp
This post was created to answer a question by Laimonas Simutis on the ALT.NET mailing list â how to list…
Read More » -
.NET

Repositories and Single Responsibility from the Trenches
In a project I’m involved with we’ve done what I suspect lots and lots of projects do. We’ve used the…
Read More » -
.NET

Supercharge Isolate.Verify
At work we use Typemock Isolator for all of our Isolation/Mocking needs. Lately Iâve noticed that my co-workers do not…
Read More » -
.NET

Using IDisposable to write cleaner code
Just before I start I should mention here that this is not a new idea and there is a good…
Read More » -
.NET

Getting the public static readonly strings and public const strings (and their values) from a class
Quite a few projects have one or more classes with with a bunch of public const stringor public static readonly…
Read More » -
.NET

Beware of big Task Parallel Library Operations
Take a look at the following code: class Program { static void Main() { var list = Enumerable.Range(0, 10 *…
Read More » -
.NET

Performance oriented .NET XML and JSON serialization
Microsoft .NET framework provides multiple out-of-the-box data serializers for data transformations. The most famous one used since .NET 1.0 version…
Read More » -
.NET

Enabling parameterized tests in MSTest using PostSharp
I have blogged about the shortcoming of Microsoftâs unit testing framework in the past. It has very good Visual Studio…
Read More » -
.NET

Using IDisposable to restore temporary settings example
This is WinForms code from a long time ago, but the concept of using an IDisposable interface to do resource…
Read More » -
.NET

Refactor âifâ statements – functional programming style
Have you ever seen code that look like this: public string GetStatusDescription(Model model) { if(model.HasProblemReports) { return "Errors"; } if(model.SystemState.WorkingMode…
Read More »



