Tag

dotnet

18 related posts.

August 2, 20165 min

How much does calling a method cost?

BenchmarkDotNet measurements of direct, virtual, interface, abstract class, and reflection method calls in .NET, and what the nanosecond differences look like.

December 22, 20152 min

The importance of red in TDD

Why throwing NotImplementedException or returning null to get your first red in TDD defeats its purpose, and how to get a red that actually verifies the test.

November 10, 20152 min

Event bus using Reactive Extensions

A tiny in-process event bus built on Reactive Extensions, and how exposing IObservable<T> lets you filter and compose events, using WPF notifications as the example.