public class DebugUtil

Summary

Miscellaneous debugging and development utilities.

Remarks

Not part of the public API.

Method Summary

Flags Name Summary
public static void Dump(byte[] bytes)

Print a hex dump of the supplied bytes to stdout.

public static void Dump(byte[] bytes, TextWriter writer)

Print a hex dump of the supplied bytes to the supplied TextWriter.

public static void DumpKeyValue(string key, object value, TextWriter writer, int indent)

Prints an indented key/value pair; used by DumpProperties()

public static void DumpProperties(object value, TextWriter writer, int indent)

Dump properties of objects to the supplied writer.

Method Detail

Dump

public static void Dump(byte[] bytes)

Flags public static
Return type void
Parameters
Name Type
bytes byte[]

Summary

Print a hex dump of the supplied bytes to stdout.

Dump

public static void Dump(byte[] bytes, TextWriter writer)

Flags public static
Return type void
Parameters
Name Type
bytes byte[]
writer TextWriter

Summary

Print a hex dump of the supplied bytes to the supplied TextWriter.

DumpKeyValue

public static void DumpKeyValue(string key, object value, TextWriter writer, int indent)

Flags public static
Return type void
Parameters
Name Type
key string
value object
writer TextWriter
indent int

Summary

Prints an indented key/value pair; used by DumpProperties()

Remarks

Recurses into the value using DumpProperties().

DumpProperties

public static void DumpProperties(object value, TextWriter writer, int indent)

Flags public static
Return type void
Parameters
Name Type
value object
writer TextWriter
indent int

Summary

Dump properties of objects to the supplied writer.