Lee Culver, a software developer on the .NET Runtime team, has shipped an awesome managed code library for anyone interested in analysing memory dumps and the internals of running .NET applications. Known as CLRMD, this library allows you to write code that does all the kinds of stuff you do with the SOS, PSSCOR2, PSSCOR4 or SOSEX debugger extensions and more.
You can read more about it here
You can get the NuGet package here..
This is a fantastic addition to the debugging toolbox and opens world of possibilities for .NET problem investigation and resolution.