Click or drag to resize

NiceFormatterSample Method

Overload List
 NameDescription
Public Extension MethodCode exampleSample(Byte, Int32) Converts a buffer into a nicely formatted string where leading and trailing bytes of a maximum length are displayed, but excess middle bytes are replaced with a count placeholder. It therefore displays a sample of a buffer of arbitrary length. The middle truncation is skipped if it is less than 8 bytes long.
Public Extension MethodCode exampleSample(String, Int32) Converts a string into a nicely formatted string whre leading and trailing characters of a maximum length are displayed, but excess middle charactes are replaced with a count placeholder. It therefore displays a sample of a string of arbitrary length. The middle truncation is skipped if it is less than 8 characters long.
Top
See Also