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.
Afficher le fichier Open project: kbilsted/StatePrinter

Méthodes publiques

Свойство Type Description
Configuration StatePrinting.Configurations.Configuration

Méthodes publiques

Méthode 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 méthode

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

PrintObject() public méthode

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.
Résultat string

Stateprinter() public méthode

Create an state printer using the ConfigurationHelper.GetStandardConfiguration
public Stateprinter ( ) : System
Résultat System

Stateprinter() public méthode

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

Property Details

Configuration public_oe property

Get the configuration for further fine-tuning
public Configuration,StatePrinting.Configurations Configuration
Résultat StatePrinting.Configurations.Configuration