Inspect
Helper utility for inspecting variables
Assembly: ServiceStack.Common.dll
View Source
public static class Inspect
Methods
vars(Object)
Dump serialized values to 'vars.json'
View Source
public static void vars(object anonArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Object | anonArgs | Anonymous object with named value |
|
dump<T>(T)
Recursively prints the contents of any POCO object in a human-friendly, readable format
View Source
public static string dump<T>(T instance)
Returns
System.String
Parameters
Type | Name |
---|---|
<T> | instance |
Type Parameters
T
printDump<T>(T)
Print Dump to Console.WriteLine
View Source
public static void printDump<T>(T instance)
Parameters
Type | Name |
---|---|
<T> | instance |
Type Parameters
T
dumpTable(Object)
Dump object in Ascii Markdown table
View Source
public static string dumpTable(object instance)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | instance |
dumpTable(Object, TextDumpOptions)
Dump object in Ascii Markdown table
View Source
public static string dumpTable(object instance, TextDumpOptions options)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | instance |
ServiceStack.TextDumpOptions | options |
dumpTable(Object, String[])
Dump object in Ascii Markdown table using specified column headers
View Source
public static string dumpTable(object instance, string[] headers)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | instance |
System.String[] | headers |
printDumpTable(Object)
Print Dump object in Ascii Markdown table
View Source
public static void printDumpTable(object instance)
Parameters
Type | Name |
---|---|
System.Object | instance |
printDumpTable(Object, String[])
Print Dump object in Ascii Markdown table using specified column headers
View Source
public static void printDumpTable(object instance, string[] headers)
Parameters
Type | Name |
---|---|
System.Object | instance |
System.String[] | headers |
htmlDump(Object)
Recursively prints the contents of any POCO object to HTML
View Source
public static string htmlDump(object target)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
htmlDump(Object, HtmlDumpOptions)
Recursively prints the contents of any POCO object to HTML
View Source
public static string htmlDump(object target, HtmlDumpOptions options)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
ServiceStack.HtmlDumpOptions | options |
htmlDump(Object, String[])
Recursively prints the contents of any POCO object to HTML with specified columns
View Source
public static string htmlDump(object target, string[] headers)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
System.String[] | headers |
printHtmlDump(Object)
Print htmlDump object
View Source
public static void printHtmlDump(object instance)
Parameters
Type | Name |
---|---|
System.Object | instance |
printHtmlDump(Object, String[])
Print htmlDump object with specified columns
View Source
public static void printHtmlDump(object instance, string[] headers)
Parameters
Type | Name |
---|---|
System.Object | instance |
System.String[] | headers |