public static string Describe(object x) { if (x == null) return "<null>"; var type = x as Type ?? x.GetType (); StringWriter sw = new StringWriter (); new Outline (type, sw, true, false, false).OutlineType (); return sw.ToString (); }