So I tried out the Windows Live Writer code formatting plugin available on CodePlex, and at first sight it seemed to work well, that was until I read my feed through Google Reader. For some reason within Google Reader there was a bunch of extra white space between lines of code, which as a result made it completely unreadable. So here I am again trying out yet another Live Writer plugin, Insert Code for Windows Live Writer. Hopefully this one works.
/// <summary> /// Recursively gets the innermost exception, i.e. the first exception /// that was thrown. /// </summary> /// <param name="ex">The exception to unwind.</param> /// <returns>The inner most InnerException.</returns> public static Exception GetInnerMostException(Exception ex) { Exception inner = ex; while (inner.InnerException != null) inner = inner.InnerException; return inner; }
I'm using the instructions from Phil Haack.
Powered by: newtelligence dasBlog 2.1.8102.813
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Shawn Neal
E-mail