Skip to main content

Inspect

Helper utility for inspecting variables

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class Inspect

Methods

vars(Object)

Dump serialized values to 'vars.json'

View Source
Declaration
public static void vars(object anonArgs)
Parameters
TypeNameDescription
System.ObjectanonArgsAnonymous object with named value

|

dump<T>(T)

Recursively prints the contents of any POCO object in a human-friendly, readable format

View Source
Declaration
public static string dump<T>(T instance)
Returns

System.String

Parameters
TypeName
<T>instance
Type Parameters
  • T

printDump<T>(T)

Print Dump to Console.WriteLine

View Source
Declaration
public static void printDump<T>(T instance)
Parameters
TypeName
<T>instance
Type Parameters
  • T

dumpTable(Object)

Dump object in Ascii Markdown table

View Source
Declaration
public static string dumpTable(object instance)
Returns

System.String

Parameters
TypeName
System.Objectinstance

dumpTable(Object, TextDumpOptions)

Dump object in Ascii Markdown table

View Source
Declaration
public static string dumpTable(object instance, TextDumpOptions options)
Returns

System.String

Parameters
TypeName
System.Objectinstance
ServiceStack.TextDumpOptionsoptions

dumpTable(Object, String[])

Dump object in Ascii Markdown table using specified column headers

View Source
Declaration
public static string dumpTable(object instance, string[] headers)
Returns

System.String

Parameters
TypeName
System.Objectinstance
System.String[]headers

printDumpTable(Object)

Print Dump object in Ascii Markdown table

View Source
Declaration
public static void printDumpTable(object instance)
Parameters
TypeName
System.Objectinstance

printDumpTable(Object, String[])

Print Dump object in Ascii Markdown table using specified column headers

View Source
Declaration
public static void printDumpTable(object instance, string[] headers)
Parameters
TypeName
System.Objectinstance
System.String[]headers

htmlDump(Object)

Recursively prints the contents of any POCO object to HTML

View Source
Declaration
public static string htmlDump(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

htmlDump(Object, HtmlDumpOptions)

Recursively prints the contents of any POCO object to HTML

View Source
Declaration
public static string htmlDump(object target, HtmlDumpOptions options)
Returns

System.String

Parameters
TypeName
System.Objecttarget
ServiceStack.HtmlDumpOptionsoptions

htmlDump(Object, String[])

Recursively prints the contents of any POCO object to HTML with specified columns

View Source
Declaration
public static string htmlDump(object target, string[] headers)
Returns

System.String

Parameters
TypeName
System.Objecttarget
System.String[]headers

printHtmlDump(Object)

Print htmlDump object

View Source
Declaration
public static void printHtmlDump(object instance)
Parameters
TypeName
System.Objectinstance

printHtmlDump(Object, String[])

Print htmlDump object with specified columns

View Source
Declaration
public static void printHtmlDump(object instance, string[] headers)
Parameters
TypeName
System.Objectinstance
System.String[]headers