Chris Whitworth

Follow Chris Whitworth via

26 February 2016
26 February 2016

ConditionalWeakTable and dynamic properties in .NET 4+

0
2
In version 4.0 of the .NET Framework, Microsoft added a new class to the System.Runtime.CompilerServices namespace: ConditionalWeakTable<TKey, TValue>. On the surface, this looks like a straightforward dictionary class – it allows you to look up instances ofTValue by instances of TKey. But we’ve already got Dictionary<TKey, TValue>, so what’s special about this new type? Static … Read more
0
2
02 December 2015
02 December 2015

Profiling the Profilers – Part 2: Anonymous Functions, Accidental Captures and Compiler-Generated Code

0
0
In the previous post, I looked at tracking down and fixing a memory leak in ANTS Performance Profiler; .NET memory usage gradually increased over time when different regions of the timeline are selected while the “Database Calls” view is open. When I left off, I’d found one problem – a dictionary mapping UI components to … Read more
0
0