C# Class StatePrinting.Stateprinter

A class able to dump an object graph to a string. class inheritance hierarchies as well as cyclic graphs are supported. Simply call the PrintObject with an object or object-graph to get a string representation. The printing process is thread safe. The state printer is highly customizable both in terms of which types and fields are printed as well as how printing of values is done.
Exibir arquivo Open project: kbilsted/StatePrinter

Public Properties

Property Type Description
Configuration StatePrinting.Configurations.Configuration

Public Methods

Method Description
PrintObject ( object objectToPrint ) : string

Print an object graph to a string.

PrintObject ( object objectToPrint, string rootname ) : string

Print an object graph to a string.

Stateprinter ( ) : System

Create an state printer using the ConfigurationHelper.GetStandardConfiguration

Stateprinter ( Configuration configuration ) : System

Create an state printer using the supplied configuration.

Method Details

PrintObject() public method

Print an object graph to a string.
public PrintObject ( object objectToPrint ) : string
objectToPrint object What to print.
return string

PrintObject() public method

Print an object graph to a string.
public PrintObject ( object objectToPrint, string rootname ) : string
objectToPrint object What to print.
rootname string The name of the root as it is printed.
return string

Stateprinter() public method

Create an state printer using the ConfigurationHelper.GetStandardConfiguration
public Stateprinter ( ) : System
return System

Stateprinter() public method

Create an state printer using the supplied configuration.
public Stateprinter ( Configuration configuration ) : System
configuration StatePrinting.Configurations.Configuration
return System

Property Details

Configuration public_oe property

Get the configuration for further fine-tuning
public Configuration,StatePrinting.Configurations Configuration
return StatePrinting.Configurations.Configuration