C# Класс 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.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Configuration StatePrinting.Configurations.Configuration

Открытые методы

Метод Описание
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.

Описание методов

PrintObject() публичный Метод

Print an object graph to a string.
public PrintObject ( object objectToPrint ) : string
objectToPrint object What to print.
Результат string

PrintObject() публичный Метод

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.
Результат string

Stateprinter() публичный Метод

Create an state printer using the ConfigurationHelper.GetStandardConfiguration
public Stateprinter ( ) : System
Результат System

Stateprinter() публичный Метод

Create an state printer using the supplied configuration.
public Stateprinter ( Configuration configuration ) : System
configuration StatePrinting.Configurations.Configuration
Результат System

Описание свойств

Configuration публичное свойство

Get the configuration for further fine-tuning
public Configuration,StatePrinting.Configurations Configuration
Результат StatePrinting.Configurations.Configuration