C# Class Examples.ExampleHelper

Static class containing some static helper method used during example execution.
ファイルを表示 Open project: zencoders/sambatyon Class Usage Examples

Public Methods

Method Description
DumpObjectProperties ( Object obj ) : void

Public method used to dump object on console. This method uses the private method dumpObjectOnString

ExampleMethodPrint ( string message, MethodBase method ) : void

This method prints on the Console the name of the example method

ExampleSetPrint ( string message, Type clazz ) : void

This method prints on the Console the name of the examples module (set of examples method)

Private Methods

Method Description
dumpObjectOnString ( Object obj ) : string

This method recursively dump object properties in key-value format and return it in a string.

Method Details

DumpObjectProperties() public static method

Public method used to dump object on console. This method uses the private method dumpObjectOnString
public static DumpObjectProperties ( Object obj ) : void
obj Object Object to dump
return void

ExampleMethodPrint() public static method

This method prints on the Console the name of the example method
public static ExampleMethodPrint ( string message, MethodBase method ) : void
message string Description of the actions executed by the example
method System.Reflection.MethodBase Method type for the example
return void

ExampleSetPrint() public static method

This method prints on the Console the name of the examples module (set of examples method)
public static ExampleSetPrint ( string message, Type clazz ) : void
message string Description of the example set
clazz System.Type Type reference of the example module
return void