private static string _renderUrlParamValue(object obj) { if (obj == null) { return(Dumper.NullCode[0]); } else if (obj.GetType().Name == "UrlParameter") { return(@"<span class=""type"">[Optional]</span>"); } else { Type objType = obj.GetType(); Type underlyingType = null; return(Dumper.DumpPrimitiveType(ref obj, ref objType, ref underlyingType, 0, true, Dispatcher.DumpMaxLength, "")); } }