DumpStackToCSharpCode provides functionality to dump stack to C# code directly from visual studio while debugging application. You can do it from context menu, which is invoked from Autos or Locals windows.
You can download it from visual studio marketplace.
Invoking action from Autos window.
Invoking action from Locals window.
Choose which object you want to dump
Configure object that should be created via constructor
Refresh automatically during debugging.